qmk_firmware/internals_udc_desc_group.md

2.2 KiB

group udc_desc_group

Summary

Members Descriptions
define UDC_DESC_STORAGE Defines the memory's location of USB descriptors.
define UDC_DATA
define UDC_BSS
struct udc_config_speed_t Configuration descriptor and UDI link for one USB speed.
struct udc_config_t All information about the USB Device.

Members

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".

define UDC_DATA

define UDC_BSS

struct udc_config_speed_t

Configuration descriptor and UDI link for one USB speed.

Summary

Members Descriptions

Members

struct udc_config_t

All information about the USB Device.

Summary

Members Descriptions

Members