Trigger an event callback after a timeout. More...
Trigger an event callback after a timeout.
This provides convenience functions to trigger a callback event after some time has passed.
Event Deferred Callback API
Definition in file deferred_callback.h.
 Include dependency graph for deferred_callback.h:Go to the source code of this file.
Data Structures | |
| struct | event_deferred_callback_t | 
| Deferred Callback Event structure.  More... | |
| static void | _event_deferred_post (void *arg) | 
| Internal helper function for ztimer callback.  More... | |
| static void | event_deferred_callback_post (event_deferred_callback_t *event, event_queue_t *queue, ztimer_clock_t *clock, uint32_t timeout, void(*callback)(void *), void *arg) | 
| Execute a callback function in the event thread after a timeout.  More... | |
| static void | event_deferred_callback_cancel (event_deferred_callback_t *event, ztimer_clock_t *clock) | 
| Cancel a callback function if it has not been executed yet.  More... | |
      
  | 
  inlinestatic | 
Internal helper function for ztimer callback.
| [in] | arg | event structure | 
Definition at line 48 of file deferred_callback.h.
      
  | 
  inlinestatic | 
Cancel a callback function if it has not been executed yet.
| [in] | event | event_deferred_callback object to cancel | 
| [in] | clock | the clock this timer runs on | 
Definition at line 96 of file deferred_callback.h.
      
  | 
  inlinestatic | 
Execute a callback function in the event thread after a timeout.
event must be kept allocated until the callback was executed| [in] | event | event_deferred_callback object to initialize | 
| [in] | queue | queue that the timed-out event will be added to | 
| [in] | clock | the clock to configure this timer on | 
| [in] | timeout | timer target (relative ticks from now) | 
| [in] | callback | callback to set up | 
| [in] | arg | callback argument to set up | 
Definition at line 67 of file deferred_callback.h.