Configuration passed to app_usbd_init. More...
#include <app_usbd.h>
Data Fields | |
void(* | ev_handler )(app_usbd_internal_evt_t const *const p_event) |
User defined event handler. More... | |
void(* | ev_isr_handler )(app_usbd_internal_evt_t const *const p_event, bool queued) |
User defined event handler. More... | |
void(* | ev_state_proc )(app_usbd_event_type_t event) |
User defined event processor. More... | |
bool | enable_sof |
SOF processing required by the user event processing. More... | |
Configuration passed to app_usbd_init.
bool app_usbd_config_t::enable_sof |
SOF processing required by the user event processing.
This flag would enable SOF processing for the user events regardless of the fact if any of the implemented class requires SOF event.
void(* app_usbd_config_t::ev_handler)(app_usbd_internal_evt_t const *const p_event) |
User defined event handler.
This function is called on every event from the interrupt. It is prepared for external user function that would queue events to be processed from the main context. It should be used with operating systems with its own implementation of the queue.
p_event | The event structure pointer. |
void(* app_usbd_config_t::ev_isr_handler)(app_usbd_internal_evt_t const *const p_event, bool queued) |
User defined event handler.
This function is called on every event from the interrupt.
p_event | The event structure pointer. |
queued | The event is visible in the queue. If queue conflict is detected the event might not be accessible inside queue until all write operations finish. See Atomic FIFO for more details. |
void(* app_usbd_config_t::ev_state_proc)(app_usbd_event_type_t event) |
User defined event processor.
This function is called while state event is processed.
event | Event type. Only following events are sent into this function:
|