nRF52840 only: Descriptors used in the USB CDC class implementation.A group of macros used to initialize CDC descriptors More...
Macros |
|
| #define | APP_USBD_CDC_IAD_DSC (interface_number, subclass, protocol) |
|
Initializer of IAD descriptor for CDC class.
More...
|
|
| #define | APP_USBD_CDC_COMM_INTERFACE_DSC (interface_number, subclass, protocol) |
|
Initializer of interface descriptor for CDC COMM class.
More...
|
|
| #define | APP_USBD_CDC_DATA_INTERFACE_DSC (interface_number, subclass, protocol) |
|
Initializer of interface descriptor for CDC DATA class.
More...
|
|
| #define | APP_USBD_CDC_COM_EP_DSC (endpoint_in, ep_size) |
|
Initializer of endpoint descriptor for CDC COM class.
More...
|
|
| #define | APP_USBD_CDC_DATA_EP_DSC (endpoint_in, endpoint_out, ep_size) |
|
Initializer of endpoint descriptors for CDC DATA class.
More...
|
|
| #define | APP_USBD_CDC_HEADER_DSC (bcd_cdc) |
|
Initializer of endpoint descriptors for CDC header descriptor.
More...
|
|
| #define | APP_USBD_CDC_CALL_MGMT_DSC (capabilities, data_interface) |
|
Initializer of endpoint descriptors for CDC call management descriptor.
More...
|
|
| #define | APP_USBD_CDC_ACM_DSC (capabilities) |
|
Initializer of endpoint descriptors for CDC DATA class.
More...
|
|
| #define | APP_USBD_CDC_UNION_DSC (control_interface,...) |
|
Initializer of endpoint descriptors for CDC DATA class.
More...
|
|
Detailed Description
nRF52840 only: Descriptors used in the USB CDC class implementation.
A group of macros used to initialize CDC descriptors
Macro Definition Documentation
| #define APP_USBD_CDC_ACM_DSC | ( | capabilities | ) |
/*.bDescriptorType = */ APP_USBD_CDC_CS_INTERFACE, \
/*.bDescriptorSubtype = */ APP_USBD_CDC_SCS_ACM, \
/*.bmCapabilities = */ capabilities, \
Initializer of endpoint descriptors for CDC DATA class.
- Parameters
-
capabilities Capabilities.
| #define APP_USBD_CDC_CALL_MGMT_DSC | ( | capabilities, | |
| data_interface | |||
| ) |
/*.bDescriptorType = */ APP_USBD_CDC_CS_INTERFACE, \
/*.bDescriptorSubtype = */ APP_USBD_CDC_SCS_CALL_MGMT, \
/*.bmCapabilities = */ capabilities, \
/*.bDataInterface = */ data_interface, \
Initializer of endpoint descriptors for CDC call management descriptor.
- Parameters
-
capabilities Capabilities. data_interface Data interface.
| #define APP_USBD_CDC_COM_EP_DSC | ( | endpoint_in, | |
| ep_size | |||
| ) |
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_ENDPOINT, \
/*.bEndpointAddress = */ endpoint_in, \
/*.bmAttributes = */ APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_INTERRUPT, \
/*.wMaxPacketSize = */ APP_USBD_U16_TO_RAW_DSC(ep_size), \
/*.bInterval = */ 16, \
Initializer of endpoint descriptor for CDC COM class.
- Parameters
-
endpoint_in IN endpoint. ep_size Endpoint size.
| #define APP_USBD_CDC_COMM_INTERFACE_DSC | ( | interface_number, | |
| subclass, | |||
| protocol | |||
| ) |
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_INTERFACE, \
/*.bInterfaceNumber = */ interface_number, \
/*.bAlternateSetting = */ 0x00, \
/*.bNumEndpoints = */ 1, \
/*.bInterfaceClass = */ APP_USBD_CDC_COMM_CLASS, \
/*.bInterfaceSubClass = */ subclass, \
/*.bInterfaceProtocol = */ protocol, \
/*.iInterface = 0, */ 0x00, \
Initializer of interface descriptor for CDC COMM class.
- Parameters
-
interface_number Interface number. subclass Subclass, app_usbd_cdc_subclass_t . protocol Protocol, app_usbd_cdc_comm_protocol_t .
| #define APP_USBD_CDC_DATA_EP_DSC | ( | endpoint_in, | |
| endpoint_out, | |||
| ep_size | |||
| ) |
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_ENDPOINT, \
/*.bEndpointAddress = */ endpoint_in, \
/*.bmAttributes = */ APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
/*.wMaxPacketSize = */ APP_USBD_U16_TO_RAW_DSC(ep_size), \
/*.bInterval = */ 0, \
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_ENDPOINT, \
/*.bEndpointAddress = */ endpoint_out, \
/*.bmAttributes = */ APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
/*.wMaxPacketSize = */ APP_USBD_U16_TO_RAW_DSC(ep_size), \
/*.bInterval = */ 0, \
Initializer of endpoint descriptors for CDC DATA class.
- Parameters
-
endpoint_in IN endpoint. endpoint_out OUT endpoint. ep_size Endpoint size.
| #define APP_USBD_CDC_DATA_INTERFACE_DSC | ( | interface_number, | |
| subclass, | |||
| protocol | |||
| ) |
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_INTERFACE, \
/*.bInterfaceNumber = */ interface_number, \
/*.bAlternateSetting = */ 0x00, \
/*.bNumEndpoints = */ 2, \
/*.bInterfaceClass = */ APP_USBD_CDC_DATA_CLASS, \
/*.bInterfaceSubClass = */ subclass, \
/*.bInterfaceProtocol = */ protocol, \
/*.iInterface = 0, */ 0x00, \
Initializer of interface descriptor for CDC DATA class.
- Parameters
-
interface_number Interface number. subclass Subclass, app_usbd_cdc_subclass_t . protocol Protocol, app_usbd_cdc_data_protocol_t .
| #define APP_USBD_CDC_HEADER_DSC | ( | bcd_cdc | ) |
/*.bDescriptorType = */ APP_USBD_CDC_CS_INTERFACE, \
/*.bDescriptorSubtype = */ APP_USBD_CDC_SCS_HEADER, \
/*.bcdCDC = */ APP_USBD_U16_TO_RAW_DSC(bcd_cdc), \
Initializer of endpoint descriptors for CDC header descriptor.
- Parameters
-
bcd_cdc BCD CDC version.
| #define APP_USBD_CDC_IAD_DSC | ( | interface_number, | |
| subclass, | |||
| protocol | |||
| ) |
/*.bDescriptorType = */ APP_USBD_DESCRIPTOR_INTERFACE_ASSOCIATION, \
/*.bFirstInterface = */ interface_number, \
/*.bInterfaceCount = */ 2, \
/*.bFunctionClass = */ APP_USBD_CDC_COMM_CLASS, \
/*.bFunctionSubClass = */ subclass, \
/*.bFunctionProtocol = */ protocol, \
/*.iFunction = */ 0, \
Initializer of IAD descriptor for CDC class.
- Parameters
-
interface_number Interface number. subclass Subclass, app_usbd_cdc_subclass_t . protocol Protocol, app_usbd_cdc_comm_protocol_t .
| #define APP_USBD_CDC_UNION_DSC | ( | control_interface, | |
| ... | |||
| ) |
/*.bDescriptorType = */ APP_USBD_CDC_CS_INTERFACE, \
/*.bDescriptorSubtype = */ APP_USBD_CDC_SCS_UNION, \
/*.bControlInterface = */ control_interface, \
/*.bSubordinateInterface = */ __VA_ARGS__, \
Initializer of endpoint descriptors for CDC DATA class.
- Parameters
-
control_interface Control interface. ... Subordinate interfaces list.