Firmware SDK
|
Driver for timer. More...
Functions | |
void | twr_timer_init (void) |
Initialize timer. | |
void | twr_timer_start (void) |
Start timer. | |
uint16_t | twr_timer_get_microseconds (void) |
Get actual tick of timer. More... | |
void | twr_timer_delay (uint16_t microseconds) |
Relative delay. More... | |
void | twr_timer_clear (void) |
Clear timer counter. | |
void | twr_timer_stop (void) |
Stop timer. | |
bool | twr_timer_set_irq_handler (TIM_TypeDef *tim, void(*irq_handler)(void *), void *irq_param) |
Register timer IRQ handler. More... | |
void | twr_timer_clear_irq_handler (TIM_TypeDef *tim) |
Unregister timer IRQ handler. More... | |
Variables | |
const uint16_t | _twr_timer_prescaler_lut [3] |
Driver for timer.
void twr_timer_clear_irq_handler | ( | TIM_TypeDef * | tim | ) |
Unregister timer IRQ handler.
[in] | tim | Timer, e.g. TIM3 |
Definition at line 74 of file twr_timer.c.
|
inline |
Relative delay.
[in] | tick | tick to delay in us |
Definition at line 59 of file twr_timer.c.
Referenced by twr_delay_us(), twr_spi_transfer(), twr_tag_nfc_init(), twr_zssc3123_eeprom_read(), and twr_zssc3123_eeprom_write().
|
inline |
Get actual tick of timer.
Definition at line 54 of file twr_timer.c.
Referenced by twr_timer_delay().
bool twr_timer_set_irq_handler | ( | TIM_TypeDef * | tim, |
void(*)(void *) | irq_handler, | ||
void * | irq_param | ||
) |
Register timer IRQ handler.
[in] | tim | Timer, e.g. TIM3 |
[in] | irq_handler | pointer to IRQ handler function |
[in] | irq_param | parameter |
Definition at line 86 of file twr_timer.c.
Referenced by twr_rf_ook_send().