Wirepas SDK
|
Go to the source code of this file.
Typedefs | |
typedef uint32_t(* | hw_delay_callback_f) (void) |
Callback to be registered, and called after timer expire. More... | |
Functions | |
hw_delay_res_e | hw_delay_init (void) |
Initialize Hardware Delay Module. More... | |
hw_delay_res_e | hw_delay_trigger_us (hw_delay_callback_f callback, uint32_t time_us) |
Setup timer trigger. More... | |
hw_delay_res_e | hw_delay_cancel (void) |
Cancel Hardware delay. More... | |
Enumerations | |
enum | hw_delay_res_e { HW_DELAY_OK, HW_DELAY_PARAM_ERR, HW_DELAY_NOT_STARTED, HW_DELAY_NOT_TRIGGERED, HW_DELAY_ERR } |
typedef uint32_t(* hw_delay_callback_f) (void) |
Callback to be registered, and called after timer expire.
Definition at line 33 of file hw_delay.h.
hw_delay_res_e hw_delay_cancel | ( | void | ) |
Cancel Hardware delay.
hw_delay_res_e hw_delay_init | ( | void | ) |
Initialize Hardware Delay Module.
hw_delay_res_e hw_delay_trigger_us | ( | hw_delay_callback_f | callback, |
uint32_t | time_us | ||
) |
Setup timer trigger.
callback | Callback to be called when delay will expire |
time_us | Callback set by hw_delay_register will be called in time_us us Granularity is ~30us, and it cannot be called again before 90us Any value less than 90us will be round-up to 90us |
enum hw_delay_res_e |
Return codes of hardware delay functions
Enumerator | |
---|---|
HW_DELAY_OK | |
HW_DELAY_PARAM_ERR | |
HW_DELAY_NOT_STARTED | |
HW_DELAY_NOT_TRIGGERED | |
HW_DELAY_ERR |
Definition at line 16 of file hw_delay.h.