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

Go to the source code of this file.

Macros

#define USB_BOS_CAP_WINUSB_LEN    USB_DESC_BOS_CAPABILITY_LEN(8)
 
#define MSOS20_FEATURE_WINUSB_SIZE
 
#define MSOS20_REQ_DISCRIPTOR_INDEX   7
 
#define MSOS20_REQ_SET_ALT_ENUMERATION   8
 
#define USB_DT_MSOS20_SET_HEADER_SIZE   10
 
#define USB_DT_MSOS20_SUBSET_HEADER_CONFIGURATION_SIZE   8
 
#define USB_DT_MSOS20_FEATURE_COMPATIBLE_ID_SIZE   20
 
#define MSOS20_REG_PROPERTY_NAME_LEN___DEVICE_INTERFACE_GUIDS___   42
 
#define MSOS20_REG_PROPERTY_DATA_LEN___DEVICE_INTERFACE_GUIDS___   80
 
#define MSOS20_REG_PROPERTY_NAME___DEVICE_INTERFACE_GUIDS___
 
#define MSOS20_REG_PROPERTY_TYPE_REG_MULTI_SZ   7
 
#define USB_DT_MSOS20_SET_HEADER   0x00
 
#define USB_DT_MSOS20_SUBSET_HEADER_CONFIGURATION   0x01
 
#define USB_DT_MSOS20_SUBSET_HEADER_FUNCTION   0x02
 
#define USB_DT_MSOS20_FEATURE_COMPATIBLE_ID   0x03
 
#define USB_DT_MSOS20_FEATURE_REG_PROPERTY   0x04
 
#define USB_DT_MSOS20_FEATURE_MIN_RESUME_TIME   0x05
 
#define USB_DT_MSOS20_FEATURE_MODEL_ID   0x06
 
#define USB_DT_MSOS20_FEATURE_CCGP_DEVICE   0x07
 
#define USB_DT_MSOS20_FEATURE_VENDOR_REVISION   0x08
 
#define USB_DESC_MSOS20_SET_HEADER(__TOTAL_LEN)
 
#define USB_DESC_MSOS20_SUBSET_FUNCTION(__FIRST_IFS, __LEN, ...)
 
#define USB_DESC_MSOS20_FEATURE_COMPATIBLE_ID(...)
 
#define USB_DESC_MSOS20_FEATURE_REG_PROPERTY_LEN(__NAME_LEN, __DATA_LEN)    (10 + (__NAME_LEN) + (__DATA_LEN))
 
#define USB_DESC_MSOS20_FEATURE_REG_PROPERTY(__NAME_LEN, __NAME, __DATA_LEN, ...)
 
#define USB_DESC_BOS_CAPABILITY_MSOS20(__len)
 
#define __usbd_msos20_desc(__name, __desc_size, ...)
 
#define usbd_msos20_desc(__name, __desc_size, ...)    __usbd_msos20_desc(__name, __desc_size, __VA_ARGS__)
 
#define __usbd_msos20_desc_buffer(__name)   __##__name##_msos20_desc
 
#define __usbd_msos20_desc_len(__name)   __##__name##_msos20_desc_len
 
#define usbd_msos20_desc_buffer(__name)   __usbd_msos20_desc_buffer(__name)
 
#define usbd_msos20_desc_len(__name)   __usbd_msos20_desc_len(__name)
 
#define __msos20_feature_winusb(__first_ifs, ...)
 
#define msos20_feature_winusb(__first_ifs, ...)    __msos20_feature_winusb((__first_ifs), __VA_ARGS__)
 
#define __bos_desc_winusb(__vendor_code, __alt_enum_code, __desc_len)
 
#define bos_desc_winusb(__vendor_code, __alt_enum_code, __desc_len)    __bos_desc_winusb((__vendor_code), (__alt_enum_code), (__desc_len))
 

Macro Definition Documentation

◆ USB_BOS_CAP_WINUSB_LEN

#define USB_BOS_CAP_WINUSB_LEN    USB_DESC_BOS_CAPABILITY_LEN(8)

◆ MSOS20_FEATURE_WINUSB_SIZE

#define MSOS20_FEATURE_WINUSB_SIZE
Value:
USB_DESC_MSOS20_FEATURE_REG_PROPERTY_LEN( \
) \
)
#define USB_DT_MSOS20_SUBSET_HEADER_CONFIGURATION_SIZE
Definition vsf_usbd_winusb.h:49
#define MSOS20_REG_PROPERTY_DATA_LEN___DEVICE_INTERFACE_GUIDS___
Definition vsf_usbd_winusb.h:53
#define MSOS20_REG_PROPERTY_NAME_LEN___DEVICE_INTERFACE_GUIDS___
Definition vsf_usbd_winusb.h:52
#define USB_DT_MSOS20_FEATURE_COMPATIBLE_ID_SIZE
Definition vsf_usbd_winusb.h:50

◆ MSOS20_REQ_DISCRIPTOR_INDEX

#define MSOS20_REQ_DISCRIPTOR_INDEX   7

◆ MSOS20_REQ_SET_ALT_ENUMERATION

#define MSOS20_REQ_SET_ALT_ENUMERATION   8

◆ USB_DT_MSOS20_SET_HEADER_SIZE

#define USB_DT_MSOS20_SET_HEADER_SIZE   10

◆ USB_DT_MSOS20_SUBSET_HEADER_CONFIGURATION_SIZE

#define USB_DT_MSOS20_SUBSET_HEADER_CONFIGURATION_SIZE   8

◆ USB_DT_MSOS20_FEATURE_COMPATIBLE_ID_SIZE

#define USB_DT_MSOS20_FEATURE_COMPATIBLE_ID_SIZE   20

◆ MSOS20_REG_PROPERTY_NAME_LEN___DEVICE_INTERFACE_GUIDS___

#define MSOS20_REG_PROPERTY_NAME_LEN___DEVICE_INTERFACE_GUIDS___   42

◆ MSOS20_REG_PROPERTY_DATA_LEN___DEVICE_INTERFACE_GUIDS___

#define MSOS20_REG_PROPERTY_DATA_LEN___DEVICE_INTERFACE_GUIDS___   80

◆ MSOS20_REG_PROPERTY_NAME___DEVICE_INTERFACE_GUIDS___

#define MSOS20_REG_PROPERTY_NAME___DEVICE_INTERFACE_GUIDS___
Value:
'D',0,'e',0,'v',0,'i',0,'c',0,'e',0, \
'I',0,'n',0,'t',0,'e',0,'r',0,'f',0,'a',0,'c',0,'e',0, \
'G',0,'U',0,'I',0,'D',0,'s',0,0,0,

◆ MSOS20_REG_PROPERTY_TYPE_REG_MULTI_SZ

#define MSOS20_REG_PROPERTY_TYPE_REG_MULTI_SZ   7

◆ USB_DT_MSOS20_SET_HEADER

#define USB_DT_MSOS20_SET_HEADER   0x00

◆ USB_DT_MSOS20_SUBSET_HEADER_CONFIGURATION

#define USB_DT_MSOS20_SUBSET_HEADER_CONFIGURATION   0x01

◆ USB_DT_MSOS20_SUBSET_HEADER_FUNCTION

#define USB_DT_MSOS20_SUBSET_HEADER_FUNCTION   0x02

◆ USB_DT_MSOS20_FEATURE_COMPATIBLE_ID

#define USB_DT_MSOS20_FEATURE_COMPATIBLE_ID   0x03

◆ USB_DT_MSOS20_FEATURE_REG_PROPERTY

#define USB_DT_MSOS20_FEATURE_REG_PROPERTY   0x04

◆ USB_DT_MSOS20_FEATURE_MIN_RESUME_TIME

#define USB_DT_MSOS20_FEATURE_MIN_RESUME_TIME   0x05

◆ USB_DT_MSOS20_FEATURE_MODEL_ID

#define USB_DT_MSOS20_FEATURE_MODEL_ID   0x06

◆ USB_DT_MSOS20_FEATURE_CCGP_DEVICE

#define USB_DT_MSOS20_FEATURE_CCGP_DEVICE   0x07

◆ USB_DT_MSOS20_FEATURE_VENDOR_REVISION

#define USB_DT_MSOS20_FEATURE_VENDOR_REVISION   0x08

◆ USB_DESC_MSOS20_SET_HEADER

#define USB_DESC_MSOS20_SET_HEADER (   __TOTAL_LEN)
Value:
USB_DESC_WORD(USB_DT_MSOS20_SET_HEADER), \
0x00, 0x00, 0x03, 0x06, /* dwWindowsVersion: Win8.1+ */ \
USB_DESC_WORD(__TOTAL_LEN),
#define USB_DESC_WORD(__VALUE)
Definition usb_desc.h:8
#define USB_DT_MSOS20_SET_HEADER
Definition vsf_usbd_winusb.h:61
#define USB_DT_MSOS20_SET_HEADER_SIZE
Definition vsf_usbd_winusb.h:48

◆ USB_DESC_MSOS20_SUBSET_FUNCTION

#define USB_DESC_MSOS20_SUBSET_FUNCTION (   __FIRST_IFS,
  __LEN,
  ... 
)
Value:
(__FIRST_IFS), \
0, \
__VA_ARGS__
#define USB_DT_MSOS20_SUBSET_HEADER_FUNCTION
Definition vsf_usbd_winusb.h:63

◆ USB_DESC_MSOS20_FEATURE_COMPATIBLE_ID

#define USB_DESC_MSOS20_FEATURE_COMPATIBLE_ID (   ...)
Value:
__VA_ARGS__
#define USB_DT_MSOS20_FEATURE_COMPATIBLE_ID
Definition vsf_usbd_winusb.h:64

◆ USB_DESC_MSOS20_FEATURE_REG_PROPERTY_LEN

#define USB_DESC_MSOS20_FEATURE_REG_PROPERTY_LEN (   __NAME_LEN,
  __DATA_LEN 
)     (10 + (__NAME_LEN) + (__DATA_LEN))

◆ USB_DESC_MSOS20_FEATURE_REG_PROPERTY

#define USB_DESC_MSOS20_FEATURE_REG_PROPERTY (   __NAME_LEN,
  __NAME,
  __DATA_LEN,
  ... 
)
Value:
USB_DESC_WORD(__NAME_LEN), \
__NAME \
USB_DESC_WORD(__DATA_LEN), \
__VA_ARGS__
#define USB_DT_MSOS20_FEATURE_REG_PROPERTY
Definition vsf_usbd_winusb.h:65
#define USB_DESC_MSOS20_FEATURE_REG_PROPERTY_LEN(__NAME_LEN, __DATA_LEN)
Definition vsf_usbd_winusb.h:92
#define MSOS20_REG_PROPERTY_TYPE_REG_MULTI_SZ
Definition vsf_usbd_winusb.h:59

◆ USB_DESC_BOS_CAPABILITY_MSOS20

#define USB_DESC_BOS_CAPABILITY_MSOS20 (   __len)
Value:
0xDF, 0x60, 0xDD, 0xD8, /* uuid */ \
0x89, 0x45, 0xC7, 0x4C, \
0x9C, 0xD2, 0x65, 0x9D, \
0x9E, 0x64, 0x8A, 0x9F, \
) \
0x00, 0x00, 0x03, 0x06, /* dwWindowsVersion: Win8.1+ */
#define USB_DESC_BOS_CAPABILITY_HEADER(__LEN, __TYPE,...)
Definition vsf_usbd_bos.h:35

◆ __usbd_msos20_desc

#define __usbd_msos20_desc (   __name,
  __desc_size,
  ... 
)
Value:
enum { \
__##__name##_msos20_desc_len = USB_DT_MSOS20_SET_HEADER_SIZE + (__desc_size),\
}; \
const uint8_t __##__name##_msos20_desc[__##__name##_msos20_desc_len] = {\
USB_DESC_MSOS20_SET_HEADER(__##__name##_msos20_desc_len) \
__VA_ARGS__ \
};
#define __name
Definition hci_transport_aic8800.c:552
unsigned char uint8_t
Definition stdint.h:5

◆ usbd_msos20_desc

#define usbd_msos20_desc (   __name,
  __desc_size,
  ... 
)     __usbd_msos20_desc(__name, __desc_size, __VA_ARGS__)

◆ __usbd_msos20_desc_buffer

#define __usbd_msos20_desc_buffer (   __name)    __##__name##_msos20_desc

◆ __usbd_msos20_desc_len

#define __usbd_msos20_desc_len (   __name)    __##__name##_msos20_desc_len

◆ usbd_msos20_desc_buffer

#define usbd_msos20_desc_buffer (   __name)    __usbd_msos20_desc_buffer(__name)

◆ usbd_msos20_desc_len

#define usbd_msos20_desc_len (   __name)    __usbd_msos20_desc_len(__name)

◆ __msos20_feature_winusb

#define __msos20_feature_winusb (   __first_ifs,
  ... 
)
Value:
), \
'W', 'I', 'N', 'U', 'S', 'B', 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, \
) \
__VA_ARGS__ \
) \
0,0,0,0, \
)
#define MSOS20_REG_PROPERTY_NAME___DEVICE_INTERFACE_GUIDS___
Definition vsf_usbd_winusb.h:54
#define USB_DESC_MSOS20_SUBSET_FUNCTION(__FIRST_IFS, __LEN,...)
Definition vsf_usbd_winusb.h:79
#define USB_DESC_MSOS20_FEATURE_COMPATIBLE_ID(...)
Definition vsf_usbd_winusb.h:87
#define USB_DESC_MSOS20_FEATURE_REG_PROPERTY(__NAME_LEN, __NAME, __DATA_LEN,...)
Definition vsf_usbd_winusb.h:94

◆ msos20_feature_winusb

#define msos20_feature_winusb (   __first_ifs,
  ... 
)     __msos20_feature_winusb((__first_ifs), __VA_ARGS__)

◆ __bos_desc_winusb

#define __bos_desc_winusb (   __vendor_code,
  __alt_enum_code,
  __desc_len 
)
Value:
USB_DESC_WORD(__desc_len), /* wMSOSDescriptorSetTotalLength */ \
(__vendor_code), /* bMS_VendorCode */ \
(__alt_enum_code), /* bAltEnumCode */
#define USB_DESC_BOS_CAPABILITY_MSOS20(__len)
Definition vsf_usbd_winusb.h:103

◆ bos_desc_winusb

#define bos_desc_winusb (   __vendor_code,
  __alt_enum_code,
  __desc_len 
)     __bos_desc_winusb((__vendor_code), (__alt_enum_code), (__desc_len))