Zephyr API 3.6.99
Loading...
Searching...
No Matches
usb_cfg_data Struct Reference

USB device configuration. More...

#include <usb_device.h>

Data Fields

const uint8_tusb_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_dataendpoint
 Pointer to an array of endpoint structs of length equal to the number of EP associated with the device description, not including control endpoints.
 

Detailed Description

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

Field Documentation

◆ cb_usb_status

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.

◆ endpoint

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.

◆ interface

struct usb_interface_cfg_data usb_cfg_data::interface

USB interface (Class) handler and storage space.

◆ interface_config

usb_interface_config usb_cfg_data::interface_config

Function for interface runtime configuration.

◆ interface_descriptor

void* usb_cfg_data::interface_descriptor

Pointer to interface descriptor.

◆ num_endpoints

uint8_t usb_cfg_data::num_endpoints

Number of individual endpoints in the device configuration.

◆ usb_device_description

const uint8_t* usb_cfg_data::usb_device_description

The documentation for this struct was generated from the following file: