You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

5.9 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
public usb_conf_desc_t](.build/docs/internals_usb_protocol_group.md#structusb__conf__desc__t)[UDC_DESC_STORAGE*desc USB configuration descriptor.
public udi_api_t](.build/docs/internals_udi_group.md#structudi__api__t)[UDC_DESC_STORAGE](.build/docs/internals_undefined.md#group__udc__desc__group_1gae086959cec07a2e71ab069e25a51764f) *[UDC_DESC_STORAGE*udi_apis Array of UDI API pointer.

Members

public usb_conf_desc_t](.build/docs/internals_usb_protocol_group.md#structusb__conf__desc__t)[UDC_DESC_STORAGE*desc

USB configuration descriptor.

public udi_api_t](.build/docs/internals_udi_group.md#structudi__api__t)[UDC_DESC_STORAGE](.build/docs/internals_undefined.md#group__udc__desc__group_1gae086959cec07a2e71ab069e25a51764f) *[UDC_DESC_STORAGE*udi_apis

Array of UDI API pointer.

struct udc_config_t

All information about the USB Device.

Summary

Members Descriptions
public usb_dev_desc_t](.build/docs/internals_usb_protocol_group.md#structusb__dev__desc__t)[UDC_DESC_STORAGE*confdev_lsfs USB device descriptor for low or full speed.
public udc_config_speed_t](.build/docs/internals_udc_desc_group.md#structudc__config__speed__t)[UDC_DESC_STORAGE*conf_lsfs USB configuration descriptor and UDI API pointers for low or full speed.
public usb_dev_bos_desc_t](.build/docs/internals_usb_protocol_group.md#structusb__dev__bos__desc__t)[UDC_DESC_STORAGE*conf_bos

Members

public usb_dev_desc_t](.build/docs/internals_usb_protocol_group.md#structusb__dev__desc__t)[UDC_DESC_STORAGE*confdev_lsfs

USB device descriptor for low or full speed.

public udc_config_speed_t](.build/docs/internals_udc_desc_group.md#structudc__config__speed__t)[UDC_DESC_STORAGE*conf_lsfs

USB configuration descriptor and UDI API pointers for low or full speed.

public usb_dev_bos_desc_t](.build/docs/internals_usb_protocol_group.md#structusb__dev__bos__desc__t)[UDC_DESC_STORAGE*conf_bos