Functions that allow user applications to receive event callbacks and set event handlers. More...
Typedefs | |
typedef void *(* | whd_event_handler_t) (whd_interface_t ifp, const whd_event_header_t *event_header, const uint8_t *event_data, void *handler_user_data) |
Event handler prototype definition. More... | |
Functions | |
uint32_t | whd_wifi_set_event_handler (whd_interface_t ifp, const uint32_t *event_type, whd_event_handler_t handler_func, void *handler_user_data, uint16_t *event_index) |
Registers a handler to receive event callbacks. More... | |
Functions that allow user applications to receive event callbacks and set event handlers.
typedef void*(* whd_event_handler_t) (whd_interface_t ifp, const whd_event_header_t *event_header, const uint8_t *event_data, void *handler_user_data) |
Event handler prototype definition.
ifp | Pointer to handle instance of whd interface |
event_header | whd event header |
event_data | event data |
handler_user_data | semaphore data |
Definition at line 187 of file whd_events.h.
uint32_t whd_wifi_set_event_handler | ( | whd_interface_t | ifp, |
const uint32_t * | event_type, | ||
whd_event_handler_t | handler_func, | ||
void * | handler_user_data, | ||
uint16_t * | event_index | ||
) |
Registers a handler to receive event callbacks.
This function registers a callback handler to be notified when a particular event is received.
ifp | Pointer to handle instance of whd interface |
event_type | Pointer to the event list array |
handler_func | A function pointer to the handler callback |
handler_user_data | A pointer value which will be passed to the event handler function at the time an event is triggered (NULL is allowed) |
event_index | Entry where the event handler is registered in the list |