The following structures provide predefined USB interface descriptors.
It must be used to define the final USB descriptors.
#define UDI_CDC_COMM_DESC |
( |
|
port | ) |
|
Content of CDC COMM interface descriptor for all speeds.
#define UDI_CDC_COMM_EP_SIZE 64 |
CDC communication endpoints size for all speeds.
#define UDI_CDC_DATA_DESC_COMMON |
Value:
.iface.bAlternateSetting = 0,\
.iface.bNumEndpoints = 2,\
.iface.bInterfaceSubClass = 0,\
.iface.bInterfaceProtocol = 0,\
.ep_in.bInterval = 0,\
.ep_out.bInterval = 0,
Definition: usb_protocol.h:194
Definition: usb_protocol.h:193
Standard USB interface descriptor structure.
Definition: usb_protocol.h:446
Definition: usb_protocol.h:251
Standard USB endpoint descriptor structure.
Definition: usb_protocol.h:461
#define CDC_CLASS_DATA
CDC Data Class Interface.
Definition: usb_protocol_cdc.h:53
Content of CDC DATA interface descriptors.
#define UDI_CDC_DATA_DESC_FS |
( |
|
port | ) |
|
Value:
.ep_in.bEndpointAddress = UDI_CDC_DATA_EP_IN_##port,\
.ep_out.bEndpointAddress = UDI_CDC_DATA_EP_OUT_##port,\
.iface.bInterfaceNumber = UDI_CDC_DATA_IFACE_NUMBER_##port,\
.iface.iInterface = UDI_CDC_DATA_STRING_ID_##port,\
}
#define UDI_CDC_DATA_DESC_COMMON
Content of CDC DATA interface descriptors.
Definition: udi_cdc.h:285
#define UDI_CDC_DATA_EPS_FS_SIZE
CDC data endpoints size for FS speed (8B, 16B, 32B, 64B)
Definition: udi_cdc.h:118
#define LE16(x)
Definition: compiler.h:773
#define UDI_CDC_DATA_DESC_HS |
( |
|
port | ) |
|
Value:
.ep_in.bEndpointAddress = UDI_CDC_DATA_EP_IN_##port,\
.ep_out.bEndpointAddress = UDI_CDC_DATA_EP_OUT_##port,\
.iface.bInterfaceNumber = UDI_CDC_DATA_IFACE_NUMBER_##port,\
.iface.iInterface = UDI_CDC_DATA_STRING_ID_##port,\
}
#define UDI_CDC_DATA_EPS_HS_SIZE
CDC data endpoints size for HS speed (512B only)
Definition: udi_cdc.h:120
#define UDI_CDC_DATA_DESC_COMMON
Content of CDC DATA interface descriptors.
Definition: udi_cdc.h:285
#define LE16(x)
Definition: compiler.h:773
#define UDI_CDC_DATA_EPS_FS_SIZE 64 |
CDC data endpoints size for FS speed (8B, 16B, 32B, 64B)
#define UDI_CDC_DATA_EPS_HS_SIZE 512 |
CDC data endpoints size for HS speed (512B only)
#define UDI_CDC_IAD_DESC |
( |
|
port | ) |
|
Value:{ \
.bInterfaceCount = 2,\
.bFirstInterface = UDI_CDC_COMM_IFACE_NUMBER_##port,\
.iFunction = UDI_CDC_IAD_STRING_ID_##port,\
}
#define CDC_SUBCLASS_ACM
Abstract Control Model.
Definition: usb_protocol_cdc.h:59
Standard USB association descriptor structure.
Definition: usb_protocol.h:432
#define CDC_PROTOCOL_V25TER
Common AT commands.
Definition: usb_protocol_cdc.h:69
#define CDC_CLASS_COMM
CDC Communication Class Interface.
Definition: usb_protocol_cdc.h:52
Definition: usb_protocol.h:199
Content of CDC IAD interface descriptor for all speeds.
By default no string associated to these interfaces.
By default no string associated to these interfaces.
By default no string associated to these interfaces.
By default no string associated to these interfaces.
By default no string associated to these interfaces.
By default no string associated to these interfaces.
By default no string associated to these interfaces.