InPlay API
|
HAL_CNT_TIMER. More...
Functions | |
void * | hal_cnt_timer_open (int id, int prio, void *arg, void(*tmr_cb)(void *)) |
Open counter timer. More... | |
void | hal_cnt_timer_close (void *hdl) |
Open counter timer. More... | |
int | hal_cnt_timer_start (void *hdl, uint32_t count, int reload) |
Run Timer periodic function. More... | |
int | hal_cnt_timer_stop (void *hdl) |
Stop Timer periodic function. More... | |
HAL_CNT_TIMER.
void hal_cnt_timer_close | ( | void * | hdl | ) |
Open counter timer.
[in] | hdl | Counter timer device handle. |
void* hal_cnt_timer_open | ( | int | id, |
int | prio, | ||
void * | arg, | ||
void(*)(void *) | tmr_cb | ||
) |
Open counter timer.
[in] | id | Timer id |
[in] | prio | Interrupt priority. |
[in] | arg | Pointer to user's own context to be passed back to user. |
[in] | tmr_cb | Pointer to user's provided call back function. This function is called in ISR context. |
int hal_cnt_timer_start | ( | void * | hdl, |
uint32_t | count, | ||
int | reload | ||
) |
Run Timer periodic function.
[in] | hdl | Counter timer device handle. |
[in] | usec | microsecond duration. |
int hal_cnt_timer_stop | ( | void * | hdl | ) |
Stop Timer periodic function.
[in] | hdl | Counter timer device handle. |