uwb-core DPL (Decawave Porting Layer) event queue wrappers  
More...
uwb-core DPL (Decawave Porting Layer) event queue wrappers 
- Author
- Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr 
Definition in file dpl_eventq.h.
Go to the source code of this file.
◆ dpl_event_fn
      
        
          | typedef void dpl_event_fn(struct dpl_event *ev) | 
      
 
dpl event callback function 
Definition at line 48 of file dpl_eventq.h.
 
 
◆ dpl_event_get_arg()
  
  | 
        
          | static void * dpl_event_get_arg | ( | struct dpl_event * | ev | ) |  |  | inlinestatic | 
 
 
◆ dpl_event_init()
Init a event. 
- Parameters
- 
  
    | [in] | ev | pointer to event to set |  | [in] | fn | event callback function |  | [in] | arg | event argument |  
 
Definition at line 57 of file dpl_eventq.h.
 
 
◆ dpl_event_is_queued()
  
  | 
        
          | static bool dpl_event_is_queued | ( | struct dpl_event * | ev | ) |  |  | inlinestatic | 
 
Check if event is in queue. 
- Parameters
- 
  
  
- Returns
- true if event is queues, false otherwise 
Definition at line 70 of file dpl_eventq.h.
 
 
◆ dpl_event_run()
  
  | 
        
          | static void dpl_event_run | ( | struct dpl_event * | ev | ) |  |  | inlinestatic | 
 
 
◆ dpl_event_set_arg()
  
  | 
        
          | static void dpl_event_set_arg | ( | struct dpl_event * | ev, |  
          |  |  | void * | arg ) |  | inlinestatic | 
 
Set the vent arg. 
- Parameters
- 
  
    | [in] | ev | event |  | [in] | arg | arg to set event |  
 
Definition at line 91 of file dpl_eventq.h.
 
 
◆ dpl_eventq_deinit()
  
  | 
        
          | static void dpl_eventq_deinit | ( | struct dpl_eventq * | evq | ) |  |  | inlinestatic | 
 
Deinitialize an event queue. 
- Note
- Not supported in RIOT
- Parameters
- 
  
    | [in] | evq | the event queue to deinit |  
 
Definition at line 133 of file dpl_eventq.h.
 
 
◆ dpl_eventq_dflt_get()
  
  | 
        
          | static struct dpl_eventq * dpl_eventq_dflt_get | ( | void |  | ) |  |  | inlinestatic | 
 
Retrieves the default event queue. 
As there is no default event queue in RIOT, uwb-core will start and handle a default event queue.
- Returns
- the default event queue. 
Definition at line 213 of file dpl_eventq.h.
 
 
◆ dpl_eventq_get()
Get next event from event queue, blocking. 
- Parameters
- 
  
    | [in] | evq | the event queue to pull an event from |  
 
- Returns
- the event from the queue 
Definition at line 146 of file dpl_eventq.h.
 
 
◆ dpl_eventq_get_no_wait()
Get next event from event queue, non-blocking. 
- Returns
- event from the queue, or NULL if none available. 
Definition at line 156 of file dpl_eventq.h.
 
 
◆ dpl_eventq_init()
  
  | 
        
          | static void dpl_eventq_init | ( | struct dpl_eventq * | evq | ) |  |  | inlinestatic | 
 
Initialize the event queue. 
- Parameters
- 
  
    | [in] | evq | The event queue to initialize |  
 
Definition at line 111 of file dpl_eventq.h.
 
 
◆ dpl_eventq_inited()
  
  | 
        
          | static int dpl_eventq_inited | ( | struct dpl_eventq * | evq | ) |  |  | inlinestatic | 
 
Check whether the event queue is initialized. 
- Parameters
- 
  
    | [in] | evq | the event queue to check |  
 
Definition at line 121 of file dpl_eventq.h.
 
 
◆ dpl_eventq_is_empty()
  
  | 
        
          | static bool dpl_eventq_is_empty | ( | struct dpl_eventq * | evq | ) |  |  | inlinestatic | 
 
Check if queue is empty. 
- Parameters
- 
  
    | [in] | evq | the event queue to check |  
 
- Returns
- true if empty, false otherwise 
Definition at line 200 of file dpl_eventq.h.
 
 
◆ dpl_eventq_put()
Put an event on the event queue. 
- Parameters
- 
  
    | [in] | evq | event queue |  | [in] | ev | event to put in queue |  
 
Definition at line 167 of file dpl_eventq.h.
 
 
◆ dpl_eventq_remove()
Remove an event from the queue. 
- Parameters
- 
  
    | [in] | evq | event queue to remove the event from |  | [in] | ev | event to remove from the queue |  
 
Definition at line 178 of file dpl_eventq.h.
 
 
◆ dpl_eventq_run()
  
  | 
        
          | static void dpl_eventq_run | ( | struct dpl_eventq * | evq | ) |  |  | inlinestatic | 
 
Gets and runs an event from the queue callback. 
- Parameters
- 
  
    | [in] | evq | The event queue to pull the item off. |  
 
Definition at line 188 of file dpl_eventq.h.