Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
USB Device Descriptor

Data Structures

struct  udc_config_speed_t
 Configuration descriptor and UDI link for one USB speed. More...
 
struct  udc_config_t
 All information about the USB Device. More...
 

Macros

#define UDC_BSS(x)   COMPILER_ALIGNED(x)
 
#define UDC_DATA(x)   COMPILER_ALIGNED(x)
 
#define UDC_DESC_STORAGE
 Defines the memory's location of USB descriptors. More...
 

Variables

UDC_DESC_STORAGE udc_config_t udc_config
 Global variables of USB Device Descriptor and UDI links. More...
 

#define UDC_BSS (   x)    COMPILER_ALIGNED(x)
#define UDC_DATA (   x)    COMPILER_ALIGNED(x)

Referenced by udi_msc_spc_inquiry().

#define UDC_DESC_STORAGE

Defines the memory's location of USB descriptors.

By default the Descriptor is stored in RAM (UDC_DESC_STORAGE is defined empty).

If you have need to free RAM space, it is possible to put descriptor in flash in following case:

  • USB driver authorize flash transfer (USBB on UC3 and USB on Mega)
  • USB Device is not high speed (UDC no need to change USB descriptors)

For UC3 application used "const".

For Mega application used "code".

Referenced by main_extra_string(), udc_get_eof_conf(), udc_iface_disable(), udc_iface_enable(), udc_next_desc_in_iface(), udc_req_ep(), udc_req_iface(), udc_req_std_iface_get_setting(), and udc_update_iface_desc().

Global variables of USB Device Descriptor and UDI links.

Global variables of USB Device Descriptor and UDI links.

Referenced by udc_req_std_dev_get_descriptor(), and udc_req_std_dev_set_configuration().