Alarm callback structure.
More...
#include <counter.h>
Alarm callback structure.
- Parameters
-
callback | Callback called on alarm (cannot be NULL). |
ticks | Number of ticks that triggers the alarm. It can be relative (to now) or absolute value (see COUNTER_ALARM_CFG_ABSOLUTE). Absolute alarm cannot be set further in future than top_value decremented by the guard period. Relative alarm ticks cannot exceed current top value (see counter_get_top_value). If counter is clock driven then ticks can be converted to microseconds (see counter_ticks_to_us). Alternatively, counter implementation may count asynchronous events. |
user_data | User data returned in callback. |
flags | Alarm flags. See Alarm configuration flags. |
◆ callback
◆ flags
◆ ticks
◆ user_data
void* counter_alarm_cfg::user_data |
The documentation for this struct was generated from the following file: