USBUS context struct. More...
#include <usbus.h>
Data Fields | |
usbus_string_t | manuf |
Manufacturer string | |
usbus_string_t | product |
Product string | |
usbus_string_t | config |
Configuration string | |
usbus_endpoint_t | ep_out [USBDEV_NUM_ENDPOINTS] |
USBUS OUT endpoints | |
usbus_endpoint_t | ep_in [USBDEV_NUM_ENDPOINTS] |
USBUS IN endpoints | |
event_queue_t | queue |
Event queue | |
usbdev_t * | dev |
usb phy device of the usb manager | |
usbus_handler_t * | control |
Ptr to the control endpoint handler | |
usbus_descr_gen_t * | descr_gen |
Linked list of top level descriptor generators | |
usbus_string_t * | strings |
List of descriptor strings | |
usbus_interface_t * | iface |
List of USB interfaces | |
usbus_handler_t * | handlers |
List of event callback handlers | |
uint32_t | ep_events |
bitflags with endpoint event state | |
kernel_pid_t | pid |
PID of the usb manager's thread | |
uint16_t | str_idx |
Number of strings registered | |
usbus_state_t | state |
Current state | |
usbus_state_t | pstate |
state to recover to from suspend | |
uint8_t | addr |
Address of the USB peripheral | |