Go to the documentation of this file.
18#ifndef __VSF_USBD_BOS_H__
19#define __VSF_USBD_BOS_H__
25#if VSF_USE_USB_DEVICE == ENABLED
33#define USB_DESC_BOS_CAPABILITY_LEN(__LEN) (20 + (__LEN))
35#define USB_DESC_BOS_CAPABILITY_HEADER(__LEN, __TYPE, ...) \
37 USB_DT_DEVICE_CAPABILITY, \
42#define bos_desc_msos20(__len) __bos_desc_msos20(__len)
44#define __usbd_bos_desc(__name, __cap_num, __len, ...) \
45 const uint8_t __##__name##_bos_desc[USB_DT_BOS_SIZE + (__len)] = { \
48 USB_DESC_WORD(USB_DT_BOS_SIZE + (__len)), \
53#define __usbd_bos_desc_table(__name) \
54 {USB_DT_BOS, 0, 0, sizeof(__##__name##_bos_desc), (uint8_t*)(__##__name##_bos_desc)}
56#define usbd_bos_desc(__name, __cap_num, __len, ...) \
57 __usbd_bos_desc(__name, __cap_num, __len, __VA_ARGS__)
58#define usbd_bos_desc_table(__name) \
59 __usbd_bos_desc_table(__name)