VSF Documented
Macros
vsf_usbd_bos.h File Reference
#include "component/usb/vsf_usb_cfg.h"

Go to the source code of this file.

Macros

#define USB_DESC_BOS_CAPABILITY_LEN(__LEN)   (20 + (__LEN))
 
#define USB_DESC_BOS_CAPABILITY_HEADER(__LEN, __TYPE, ...)
 
#define bos_desc_msos20(__len)   __bos_desc_msos20(__len)
 
#define __usbd_bos_desc(__name, __cap_num, __len, ...)
 
#define __usbd_bos_desc_table(__name)    {USB_DT_BOS, 0, 0, sizeof(__##__name##_bos_desc), (uint8_t*)(__##__name##_bos_desc)}
 
#define usbd_bos_desc(__name, __cap_num, __len, ...)    __usbd_bos_desc(__name, __cap_num, __len, __VA_ARGS__)
 
#define usbd_bos_desc_table(__name)    __usbd_bos_desc_table(__name)
 

Macro Definition Documentation

◆ USB_DESC_BOS_CAPABILITY_LEN

#define USB_DESC_BOS_CAPABILITY_LEN (   __LEN)    (20 + (__LEN))

◆ USB_DESC_BOS_CAPABILITY_HEADER

#define USB_DESC_BOS_CAPABILITY_HEADER (   __LEN,
  __TYPE,
  ... 
)
Value:
20 + (__LEN), /* bLength */ \
USB_DT_DEVICE_CAPABILITY, /* bDescriptorType */ \
(__TYPE), /* bDevCapabilityType */ \
0x00, /* bReserved */ \
__VA_ARGS__
@ USB_DT_DEVICE_CAPABILITY
Definition usb_common.h:159

◆ bos_desc_msos20

#define bos_desc_msos20 (   __len)    __bos_desc_msos20(__len)

◆ __usbd_bos_desc

#define __usbd_bos_desc (   __name,
  __cap_num,
  __len,
  ... 
)
Value:
const uint8_t __##__name##_bos_desc[USB_DT_BOS_SIZE + (__len)] = { \
USB_DESC_WORD(USB_DT_BOS_SIZE + (__len)), \
(__cap_num), \
__VA_ARGS__ \
};
#define __name
Definition hci_transport_aic8800.c:552
unsigned char uint8_t
Definition stdint.h:5
#define USB_DT_BOS_SIZE
Definition usb_common.h:54
@ USB_DT_BOS
Definition usb_common.h:158

◆ __usbd_bos_desc_table

#define __usbd_bos_desc_table (   __name)     {USB_DT_BOS, 0, 0, sizeof(__##__name##_bos_desc), (uint8_t*)(__##__name##_bos_desc)}

◆ usbd_bos_desc

#define usbd_bos_desc (   __name,
  __cap_num,
  __len,
  ... 
)     __usbd_bos_desc(__name, __cap_num, __len, __VA_ARGS__)

◆ usbd_bos_desc_table

#define usbd_bos_desc_table (   __name)     __usbd_bos_desc_table(__name)