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 an absolute value (see COUNTER_ALARM_CFG_ABSOLUTE). Both, relative and absolute, alarm values can be any value between zero and the current top value (see counter_get_top_value). When setting an absolute alarm value close to the current counter value there is a risk that the counter will have counted past the given absolute value before the driver manages to activate the alarm. Therefore a guard period can be defined that lets the driver decide unambiguously whether it is late or not (see counter_set_guard_period). If the counter is clock driven then ticks can be converted to microseconds (see counter_ticks_to_us). Alternatively, the 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: