Functions | |
uint16_t | app_tim_init (app_tim_params_t *p_params, app_tim_evt_handler_t evt_handler) |
Initialize the APP TIM DRIVER according to the specified parameters in the app_tim_params_t and app_tim_evt_handler_t. More... | |
uint16_t | app_tim_deinit (app_tim_id_t id) |
De-initialize the APP TIM DRIVER peripheral. More... | |
uint16_t | app_tim_start (app_tim_id_t id) |
Starts the TIM counter in interrupt mode. More... | |
uint16_t | app_tim_stop (app_tim_id_t id) |
Stops the TIM counter in interrupt mode. More... | |
timer_handle_t * | app_tim_get_handle (app_tim_id_t id) |
Return the TIM handle. More... | |
uint16_t app_tim_deinit | ( | app_tim_id_t | id | ) |
De-initialize the APP TIM DRIVER peripheral.
[in] | id | De-initialize for a specific ID. |
timer_handle_t* app_tim_get_handle | ( | app_tim_id_t | id | ) |
Return the TIM handle.
[in] | id | TIM Channel ID. |
uint16_t app_tim_init | ( | app_tim_params_t * | p_params, |
app_tim_evt_handler_t | evt_handler | ||
) |
Initialize the APP TIM DRIVER according to the specified parameters in the app_tim_params_t and app_tim_evt_handler_t.
[in] | p_params | Pointer to app_tim_params_t parameter which contains the configuration information for the specified TIM module. |
[in] | evt_handler | TIM user callback function. |
uint16_t app_tim_start | ( | app_tim_id_t | id | ) |
Starts the TIM counter in interrupt mode.
[in] | id | which TIM module want to start. |
uint16_t app_tim_stop | ( | app_tim_id_t | id | ) |
Stops the TIM counter in interrupt mode.
[in] | id | which TIM module want to stop. |