Go to the documentation of this file.
18#ifndef __VSF_USBD_MSC_DESC_H__
19#define __VSF_USBD_MSC_DESC_H__
29#define USB_DESC_MSC(__IFS, __SUB_CLASS, __PROTOCOL, __I_FUNC) \
30 USB_DESC_IFS((__IFS), 0, 2, USB_CLASS_MASS_STORAGE, (__SUB_CLASS), (__PROTOCOL), (__I_FUNC))
32#define USB_DESC_MSC_IAD(__IFS, __SUB_CLASS, __PROTOCOL, __I_FUNC) \
33 USB_DESC_IAD((__IFS), 1, USB_CLASS_MASS_STORAGE, __SUB_CLASS, __PROTOCOL, (__I_FUNC))\
34 USB_DESC_MSC((__IFS), (__SUB_CLASS), (__PROTOCOL), (__I_FUNC))
36#define USB_DESC_MSCBOT(__IFS, __I_FUNC, __BULK_IN_EP, __BULK_OUT_EP, __BULK_EP_SIZE)\
37 USB_DESC_MSC((__IFS), 0x06, 0x50, (__I_FUNC)) \
38 USB_DESC_EP(USB_DIR_IN | (__BULK_IN_EP), USB_ENDPOINT_XFER_BULK, __BULK_EP_SIZE, 0x00)\
39 USB_DESC_EP(USB_DIR_OUT | (__BULK_OUT_EP), USB_ENDPOINT_XFER_BULK, __BULK_EP_SIZE, 0x00)
40#define USB_DESC_MSCBOT_LEN (USB_DT_INTERFACE_SIZE + 2 * USB_DT_ENDPOINT_SIZE)
42#define USB_DESC_MSCBOT_IAD(__IFS, __I_FUNC, __BULK_IN_EP, __BULK_OUT_EP, __BULK_EP_SIZE)\
43 USB_DESC_MSC_IAD((__IFS), 0x06, 0x50, (__I_FUNC)) \
44 USB_DESC_EP(USB_DIR_IN | (__BULK_IN_EP), USB_ENDPOINT_XFER_BULK, __BULK_EP_SIZE, 0x00)\
45 USB_DESC_EP(USB_DIR_OUT | (__BULK_OUT_EP), USB_ENDPOINT_XFER_BULK, __BULK_EP_SIZE, 0x00)
46#define USB_DESC_MSCBOT_IAD_LEN (USB_DESC_IAD_LEN + USB_DESC_MSCBOT_LEN)