Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
USB device configuration. More...
#include <usb_device.h>
Data Fields | |
const uint8_t * | usb_device_description |
USB device description, see http://www.beyondlogic.org/usbnutshell/usb5.shtml#DeviceDescriptors. | |
void * | interface_descriptor |
Pointer to interface descriptor. | |
usb_interface_config | interface_config |
Function for interface runtime configuration. | |
void(* | cb_usb_status )(struct usb_cfg_data *cfg, enum usb_dc_status_code cb_status, const uint8_t *param) |
Callback to be notified on USB connection status change. | |
struct usb_interface_cfg_data | interface |
USB interface (Class) handler and storage space. | |
uint8_t | num_endpoints |
Number of individual endpoints in the device configuration. | |
struct usb_ep_cfg_data * | endpoint |
Pointer to an array of endpoint structs of length equal to the number of EP associated with the device description, not including control endpoints. | |
USB device configuration.
The Application instantiates this with given parameters added using the "usb_set_config" function. Once this function is called changes to this structure will result in undefined behavior. This structure may only be updated after calls to usb_deconfig
void(* usb_cfg_data::cb_usb_status) (struct usb_cfg_data *cfg, enum usb_dc_status_code cb_status, const uint8_t *param) |
Callback to be notified on USB connection status change.
struct usb_ep_cfg_data* usb_cfg_data::endpoint |
Pointer to an array of endpoint structs of length equal to the number of EP associated with the device description, not including control endpoints.
struct usb_interface_cfg_data usb_cfg_data::interface |
USB interface (Class) handler and storage space.
usb_interface_config usb_cfg_data::interface_config |
Function for interface runtime configuration.
void* usb_cfg_data::interface_descriptor |
Pointer to interface descriptor.
uint8_t usb_cfg_data::num_endpoints |
Number of individual endpoints in the device configuration.
const uint8_t* usb_cfg_data::usb_device_description |
USB device description, see http://www.beyondlogic.org/usbnutshell/usb5.shtml#DeviceDescriptors.