riot_sys

Function event_get

Source
pub unsafe extern "C" fn event_get(
    queue: *mut event_queue_t,
) -> *mut event_t
Expand description

@brief Get next event from event queue, non-blocking

In order to handle an event retrieved using this function, call event->handler(event).

@param[in] queue event queue to get event from

@returns pointer to next event @returns NULL if no event available