![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
Data Structures | |
| struct | bm_timer |
| Timer instance structure. More... | |
Macros | |
| #define | BM_TIMER_MIN_TIMEOUT_US (uint32_t)((5 * 1000000) / 32768) |
| Minimum timeout in microseconds. | |
| #define | BM_TIMER_MIN_TIMEOUT_TICKS k_us_to_ticks_ceil32(BM_TIMER_MIN_TIMEOUT_US) |
| Minimum value of the timeout_ticks parameter of bm_timer_start. | |
| #define | BM_TIMER_MS_TO_TICKS(ms) |
| Convert milliseconds to timer ticks. | |
| #define | BM_TIMER_US_TO_TICKS(us) |
| Convert microseconds to timer ticks. | |
Typedefs | |
| typedef void(* | bm_timer_timeout_handler_t) (void *context) |
| Application time-out handler type. | |
Enumerations | |
| enum | bm_timer_mode { BM_TIMER_MODE_SINGLE_SHOT , BM_TIMER_MODE_REPEATED } |
| Timer modes. More... | |
Functions | |
| int | bm_timer_init (struct bm_timer *timer, enum bm_timer_mode mode, bm_timer_timeout_handler_t timeout_handler) |
| Initialize a timer instance. | |
| int | bm_timer_start (struct bm_timer *timer, uint32_t timeout_ticks, void *context) |
| Start a timer. | |
| int | bm_timer_stop (struct bm_timer *timer) |
| Stop a timer. | |