fix doc
This commit is contained in:
parent
c083b470b6
commit
04249b205e
|
@ -92,36 +92,36 @@ static const struct usb_endpoint_descriptor communication_endpoints[] = {{
|
||||||
* @note as defined in USB CDC specification section 5.2.3
|
* @note as defined in USB CDC specification section 5.2.3
|
||||||
*/
|
*/
|
||||||
static const struct {
|
static const struct {
|
||||||
struct usb_cdc_header_descriptor header;
|
struct usb_cdc_header_descriptor header; /**< header */
|
||||||
struct usb_cdc_call_management_descriptor call_mgmt;
|
struct usb_cdc_call_management_descriptor call_mgmt; /**< call management descriptor */
|
||||||
struct usb_cdc_acm_descriptor acm;
|
struct usb_cdc_acm_descriptor acm; /**< descriptor */
|
||||||
struct usb_cdc_union_descriptor cdc_union;
|
struct usb_cdc_union_descriptor cdc_union; /**< descriptor */
|
||||||
} __attribute__((packed)) cdcacm_functional_descriptors = {
|
} __attribute__((packed)) cdcacm_functional_descriptors = {
|
||||||
.header = {
|
.header = {
|
||||||
.bFunctionLength = sizeof(struct usb_cdc_header_descriptor),
|
.bFunctionLength = sizeof(struct usb_cdc_header_descriptor), /**< descriptor length */
|
||||||
.bDescriptorType = CS_INTERFACE,
|
.bDescriptorType = CS_INTERFACE, /**< descriptor type */
|
||||||
.bDescriptorSubtype = USB_CDC_TYPE_HEADER,
|
.bDescriptorSubtype = USB_CDC_TYPE_HEADER, /**< descriptor subtype */
|
||||||
.bcdCDC = 0x0110,
|
.bcdCDC = 0x0110, /**< CDC value */
|
||||||
},
|
},
|
||||||
.call_mgmt = {
|
.call_mgmt = {
|
||||||
.bFunctionLength = sizeof(struct usb_cdc_call_management_descriptor),
|
.bFunctionLength = sizeof(struct usb_cdc_call_management_descriptor), /**< descriptor length */
|
||||||
.bDescriptorType = CS_INTERFACE,
|
.bDescriptorType = CS_INTERFACE, /**< descriptor type */
|
||||||
.bDescriptorSubtype = USB_CDC_TYPE_CALL_MANAGEMENT,
|
.bDescriptorSubtype = USB_CDC_TYPE_CALL_MANAGEMENT, /**< descriptor subtype */
|
||||||
.bmCapabilities = 0,
|
.bmCapabilities = 0, /**< capabilities */
|
||||||
.bDataInterface = 1,
|
.bDataInterface = 1, /**< data interface */
|
||||||
},
|
},
|
||||||
.acm = {
|
.acm = {
|
||||||
.bFunctionLength = sizeof(struct usb_cdc_acm_descriptor),
|
.bFunctionLength = sizeof(struct usb_cdc_acm_descriptor), /**< descriptor length */
|
||||||
.bDescriptorType = CS_INTERFACE,
|
.bDescriptorType = CS_INTERFACE, /**< descriptor type */
|
||||||
.bDescriptorSubtype = USB_CDC_TYPE_ACM,
|
.bDescriptorSubtype = USB_CDC_TYPE_ACM, /**< descriptor subtype */
|
||||||
.bmCapabilities = 0,
|
.bmCapabilities = 0, /**< capabilities */
|
||||||
},
|
},
|
||||||
.cdc_union = {
|
.cdc_union = {
|
||||||
.bFunctionLength = sizeof(struct usb_cdc_union_descriptor),
|
.bFunctionLength = sizeof(struct usb_cdc_union_descriptor), /**< descriptor length */
|
||||||
.bDescriptorType = CS_INTERFACE,
|
.bDescriptorType = CS_INTERFACE, /**< descriptor type */
|
||||||
.bDescriptorSubtype = USB_CDC_TYPE_UNION,
|
.bDescriptorSubtype = USB_CDC_TYPE_UNION, /**< descriptor subtype */
|
||||||
.bControlInterface = 0,
|
.bControlInterface = 0, /**< control interface */
|
||||||
.bSubordinateInterface0 = 1,
|
.bSubordinateInterface0 = 1, /**< subordinate interface */
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue