USBUS event handler function pointers. More...
#include <usbus.h>
Data Fields | |
void(* | init )(usbus_t *usbus, struct usbus_handler *handler) |
Initialize the event handler. More... | |
void(* | event_handler )(usbus_t *usbus, struct usbus_handler *handler, usbus_event_usb_t event) |
event handler function More... | |
void(* | transfer_handler )(usbus_t *usbus, struct usbus_handler *handler, usbdev_ep_t *ep, usbus_event_transfer_t event) |
transfer handler function More... | |
int(* | control_handler )(usbus_t *usbus, struct usbus_handler *handler, usbus_control_request_state_t state, usb_setup_t *request) |
control request handler function More... | |
int(* usbus_handler_driver::control_handler) (usbus_t *usbus, struct usbus_handler *handler, usbus_control_request_state_t state, usb_setup_t *request) |
control request handler function
This function receives USB control requests from the USBUS stack.
usbus | USBUS context |
handler | handler context |
state | control request state |
setup | setup packet |
void(* usbus_handler_driver::event_handler) (usbus_t *usbus, struct usbus_handler *handler, usbus_event_usb_t event) |
event handler function
This function is passed USBUS events
usbus | USBUS context |
handler | handler context |
event | usbus_event_usb_t event to handle |
void(* usbus_handler_driver::init) (usbus_t *usbus, struct usbus_handler *handler) |
void(* usbus_handler_driver::transfer_handler) (usbus_t *usbus, struct usbus_handler *handler, usbdev_ep_t *ep, usbus_event_transfer_t event) |
transfer handler function
This function receives transfer based events
usbus | USBUS context |
handler | handler context |
ep | usbdev endpoint that triggered the event |
event | usbus_event_transfer_t event |