123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #ifndef APP_USBD_MSC_DESC_H__
- #define APP_USBD_MSC_DESC_H__
- #include "app_usbd_descriptor.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define APP_USBD_MSC_INTERFACE_DSC(interface_number, subclass, protocol) \
- sizeof(app_usbd_descriptor_iface_t), \
- APP_USBD_DESCRIPTOR_INTERFACE, \
- interface_number, \
- 0x00, \
- 2, \
- APP_USBD_MSC_CLASS, \
- subclass, \
- protocol, \
- 0x00, \
- #define APP_USBD_MSC_EP_DSC(endpoint_in, endpoint_out, ep_size) \
- sizeof(app_usbd_descriptor_ep_t), \
- APP_USBD_DESCRIPTOR_ENDPOINT, \
- endpoint_in, \
- APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
- APP_USBD_U16_TO_RAW_DSC(ep_size), \
- 0, \
- sizeof(app_usbd_descriptor_ep_t), \
- APP_USBD_DESCRIPTOR_ENDPOINT, \
- endpoint_out, \
- APP_USBD_DESCRIPTOR_EP_ATTR_TYPE_BULK, \
- APP_USBD_U16_TO_RAW_DSC(ep_size), \
- 0, \
- #ifdef __cplusplus
- }
- #endif
- #endif
|