nRF52840 only: Internals of the USB ACM class implementation.
More...
nRF52840 only: Internals of the USB ACM class implementation.
#define APP_USBD_CDC_ACM_CONFIG |
( |
|
iface_comm, |
|
|
|
epin_comm, |
|
|
|
iface_data, |
|
|
|
epin_data, |
|
|
|
epout_data |
|
) |
| |
Value:((iface_comm, epin_comm), \
(iface_data, epin_data, epout_data))
CDC ACM class configuration macro.
Used by APP_USBD_CDC_ACM_GLOBAL_DEF
- Parameters
-
iface_comm | Interface number of cdc_acm control. |
epin_comm | COMM subclass IN endpoint. |
iface_data | Interface number of cdc_acm DATA. |
epin_data | COMM subclass IN endpoint. |
epout_data | COMM subclass OUT endpoint. |
#define APP_USBD_CDC_ACM_DSC_CONFIG |
( |
|
interface_number, |
|
|
|
... |
|
) |
| |
Value:{ \
APP_USBD_CDC_ACM_INTERFACE_DSC(interface_number, \
0, \
0, \
APP_USBD_CDC_ACM_SUBCLASS_CDC_ACMCONTROL) \
}
CDC ACM class descriptors config macro.
- Parameters
-
interface_number | Interface number. |
... | Extracted endpoint list. |
#define APP_USBD_CDC_ACM_GLOBAL_DEF_INTERNAL |
( |
|
instance_name, |
|
|
|
interfaces_configs, |
|
|
|
user_ev_handler, |
|
|
|
raw_descriptors |
|
) |
| |
Value:
instance_name, \
app_usbd_cdc_acm, \
interfaces_configs, \
)
Global definition of app_usbd_cdc_acm_t class.
- Parameters
-
instance_name | Name of global instance. |
interfaces_configs | Interfaces configurations. |
user_ev_handler | User event handler (optional). |
raw_descriptors | Raw descriptor table. |
#define APP_USBD_CDC_ACM_INST_CONFIG |
( |
|
descriptors, |
|
|
|
user_event_handler |
|
) |
| |
Value:.inst = { \
.p_raw_desc = descriptors, \
.raw_desc_size = sizeof(descriptors), \
.user_ev_handler = user_event_handler, \
}
Configures cdc_acm class instance.
- Parameters
-
descriptors | Mass storage class descriptors (raw table). |
user_event_handler | User event handler. |
User event handler.
- Parameters
-
[in] | p_inst | Class instance. |
[in] | event | User event. |