Go to the documentation of this file.
18#ifndef __VSF_USBD_DFU_DESC_H__
19#define __VSF_USBD_DFU_DESC_H__
28#define USB_DESC_DFU(__IFS, __I_FUNC, __PROTOCOL, __DFU_ATTR, __DETACH_TIMEOUT, __TRANSFER_SIZE)\
29 USB_DESC_IFS((__IFS), 0, 0, 0xFE, 0x01, (__PROTOCOL), (__I_FUNC)) \
30 USB_DT_DFU_FUNCTIONAL_SIZE, \
31 USB_DT_DFU_FUNCTIONAL, \
33 USB_DESC_WORD(__DETACH_TIMEOUT), \
34 USB_DESC_WORD(__TRANSFER_SIZE), \
35 USB_DESC_WORD(0x0110),
36#define USB_DESC_DFU_LEN (USB_DESC_IFS_LEN + USB_DT_DFU_FUNCTIONAL_SIZE)
38#define USB_DESC_DFU_IAD(__IFS, __I_FUNC, __PROTOCOL, __DFU_ATTR, __DETACH_TIMEOUT, __TRANSFER_SIZE)\
39 USB_DESC_IAD((__IFS), 1, 0xFE, 0x01, (__PROTOCOL), (__I_FUNC)) \
40 USB_DESC_DFU((__IFS), (__I_FUNC), (__PROTOCOL), (__DFU_ATTR), (__DETACH_TIMEOUT), (__TRANSFER_SIZE))
41#define USB_DESC_HID_IAD_LEN (USB_DESC_IAD_LEN + USB_DESC_DFU_LEN)