nRF52840 only: Descriptors used in the USB CDC class implementation.A group of macros used to initialize CDC descriptors
More...
|
#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...
|
|
nRF52840 only: Descriptors used in the USB CDC class implementation.
A group of macros used to initialize CDC descriptors
#define APP_USBD_CDC_ACM_DSC |
( |
|
capabilities | ) |
|
Value:
Initializer of endpoint descriptors for CDC DATA class.
- Parameters
-
capabilities | Capabilities. |
#define APP_USBD_CDC_CALL_MGMT_DSC |
( |
|
capabilities, |
|
|
|
data_interface |
|
) |
| |
Value:
capabilities, \
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 |
|
) |
| |
Value:
endpoint_in, \
APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_INTERRUPT, \
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 |
|
) |
| |
Value:
interface_number, \
0x00, \
1, \
subclass, \
protocol, \
0x00, \
Initializer of interface descriptor for CDC COMM class.
- Parameters
-
#define APP_USBD_CDC_DATA_EP_DSC |
( |
|
endpoint_in, |
|
|
|
endpoint_out, |
|
|
|
ep_size |
|
) |
| |
Value:
endpoint_in, \
APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
0, \
endpoint_out, \
APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
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 |
|
) |
| |
Value:
interface_number, \
0x00, \
2, \
subclass, \
protocol, \
0x00, \
Initializer of interface descriptor for CDC DATA class.
- Parameters
-
#define APP_USBD_CDC_HEADER_DSC |
( |
|
bcd_cdc | ) |
|
Value:
Initializer of endpoint descriptors for CDC header descriptor.
- Parameters
-
#define APP_USBD_CDC_IAD_DSC |
( |
|
interface_number, |
|
|
|
subclass, |
|
|
|
protocol |
|
) |
| |
Value:
interface_number, \
2, \
subclass, \
protocol, \
0, \
Initializer of IAD descriptor for CDC class.
- Parameters
-
#define APP_USBD_CDC_UNION_DSC |
( |
|
control_interface, |
|
|
|
... |
|
) |
| |
Value:
control_interface, \
__VA_ARGS__, \
Initializer of endpoint descriptors for CDC DATA class.
- Parameters
-
control_interface | Control interface. |
... | Subordinate interfaces list. |