Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
USB device support runtime context. More...
#include <usbd.h>
Data Fields | |
const char * | name |
Name of the USB device. | |
struct k_mutex | mutex |
Access mutex. | |
const struct device * | dev |
Pointer to UDC device. | |
usbd_msg_cb_t | msg_cb |
Notification message recipient callback. | |
struct usbd_ch9_data | ch9_data |
Middle layer runtime data. | |
sys_dlist_t | descriptors |
slist to manage descriptors like string, BOS | |
sys_slist_t | fs_configs |
slist to manage Full-Speed device configurations | |
sys_slist_t | hs_configs |
slist to manage High-Speed device configurations | |
sys_dlist_t | vreqs |
dlist to manage vendor requests with recipient device | |
struct usbd_status | status |
Status of the USB device support. | |
void * | fs_desc |
Pointer to Full-Speed device descriptor. | |
void * | hs_desc |
Pointer to High-Speed device descriptor. | |
USB device support runtime context.
Main structure that organizes all descriptors, configuration, and interfaces. An UDC device must be assigned to this structure.
struct usbd_ch9_data usbd_context::ch9_data |
Middle layer runtime data.
sys_dlist_t usbd_context::descriptors |
slist to manage descriptors like string, BOS
const struct device* usbd_context::dev |
Pointer to UDC device.
sys_slist_t usbd_context::fs_configs |
slist to manage Full-Speed device configurations
void* usbd_context::fs_desc |
Pointer to Full-Speed device descriptor.
sys_slist_t usbd_context::hs_configs |
slist to manage High-Speed device configurations
void* usbd_context::hs_desc |
Pointer to High-Speed device descriptor.
usbd_msg_cb_t usbd_context::msg_cb |
Notification message recipient callback.
struct k_mutex usbd_context::mutex |
Access mutex.
const char* usbd_context::name |
Name of the USB device.
struct usbd_status usbd_context::status |
Status of the USB device support.
sys_dlist_t usbd_context::vreqs |
dlist to manage vendor requests with recipient device