VSF Documented
|
Go to the source code of this file.
Macros | |
#define | USB_DESC_WORD(__VALUE) ((uint16_t)(__VALUE) >> 0) & 0xFF, ((uint16_t)(__VALUE) >> 8) & 0xFF |
#define | USB_DESC_DWORD(__VALUE) |
#define | USB_DESC_DEV_LEN USB_DT_DEVICE_SIZE |
#define | USB_DESC_DEV(__VERSION, __CLASS, __SUBCLASS, __PROTOCOL, __EP0_SIZE, __VID, __PID, __BCD_VER, __I_MANUFACTURER, __I_PRODUCT, __I_SERIAL_NUM, __CONFIG_NUM) |
#define | USB_DESC_DEV_IAD_LEN (USB_DESC_IAD_LEN + USB_DESC_DEV_LEN) |
#define | USB_DESC_DEV_IAD(__VERSION, __EP0_SIZE, __VID, __PID, __BCD_VER, __I_MANUFACTURER, __I_PRODUCT, __I_SERIAL_NUM, __CONFIG_NUM) USB_DESC_DEV((__VERSION), 0xEF, 0x02, 0x01, (__EP0_SIZE), (__VID), (__PID), (__BCD_VER), (__I_MANUFACTURER), (__I_PRODUCT), (__I_SERIAL_NUM), (__CONFIG_NUM)) |
#define | USB_DESC_CFG_LEN USB_DT_CONFIG_SIZE |
#define | USB_DESC_CFG(__CFG_SIZE, __IFS_NUM, __CONFIG_VALUE, __I_CONFIG, __ATTR, __MAX_POWER) |
#define | USB_DESC_IFS_LEN USB_DT_INTERFACE_SIZE |
#define | USB_DESC_IFS(__IFS_NUM, __ALT_SETTING, __EP_NUM, __CLASS, __SUBCLASS, __PROTOCOL, __I_IFS) |
#define | USB_DESC_EP_LEN USB_DT_ENDPOINT_SIZE |
#define | USB_DESC_EP(__EP_NUM, __EP_ATTR, __EP_SIZE, __EP_INTERVAL) |
#define | USB_DESC_QUALIFIER_LEN USB_DT_DEVICE_QUALIFIER_SIZE |
#define | USB_DESC_QUALIFIER(__VERSION, __CLASS, __SUB_CLASS, __PROTOCOL, __EP0_SIZE, __CONFIG_NUM) |
#define | USB_DESC_IAD_LEN USB_DT_INTERFACE_ASSOCIATION_SIZE |
#define | USB_DESC_IAD(__IFS_START, __IFS_NUM, __CLASS, __SUBCLASS, __PROTOCOL, __I_FUNC) |
#define | USB_DESC_STRING_LEN(__STR_LEN) ((__STR_LEN) + 2) |
#define | USB_DESC_STRING(__STR_LEN, ...) |
#define USB_DESC_WORD | ( | __VALUE | ) | ((uint16_t)(__VALUE) >> 0) & 0xFF, ((uint16_t)(__VALUE) >> 8) & 0xFF |
#define USB_DESC_DWORD | ( | __VALUE | ) |
#define USB_DESC_DEV_LEN USB_DT_DEVICE_SIZE |
#define USB_DESC_DEV | ( | __VERSION, | |
__CLASS, | |||
__SUBCLASS, | |||
__PROTOCOL, | |||
__EP0_SIZE, | |||
__VID, | |||
__PID, | |||
__BCD_VER, | |||
__I_MANUFACTURER, | |||
__I_PRODUCT, | |||
__I_SERIAL_NUM, | |||
__CONFIG_NUM | |||
) |
#define USB_DESC_DEV_IAD_LEN (USB_DESC_IAD_LEN + USB_DESC_DEV_LEN) |
#define USB_DESC_DEV_IAD | ( | __VERSION, | |
__EP0_SIZE, | |||
__VID, | |||
__PID, | |||
__BCD_VER, | |||
__I_MANUFACTURER, | |||
__I_PRODUCT, | |||
__I_SERIAL_NUM, | |||
__CONFIG_NUM | |||
) | USB_DESC_DEV((__VERSION), 0xEF, 0x02, 0x01, (__EP0_SIZE), (__VID), (__PID), (__BCD_VER), (__I_MANUFACTURER), (__I_PRODUCT), (__I_SERIAL_NUM), (__CONFIG_NUM)) |
#define USB_DESC_CFG_LEN USB_DT_CONFIG_SIZE |
#define USB_DESC_CFG | ( | __CFG_SIZE, | |
__IFS_NUM, | |||
__CONFIG_VALUE, | |||
__I_CONFIG, | |||
__ATTR, | |||
__MAX_POWER | |||
) |
#define USB_DESC_IFS_LEN USB_DT_INTERFACE_SIZE |
#define USB_DESC_IFS | ( | __IFS_NUM, | |
__ALT_SETTING, | |||
__EP_NUM, | |||
__CLASS, | |||
__SUBCLASS, | |||
__PROTOCOL, | |||
__I_IFS | |||
) |
#define USB_DESC_EP_LEN USB_DT_ENDPOINT_SIZE |
#define USB_DESC_EP | ( | __EP_NUM, | |
__EP_ATTR, | |||
__EP_SIZE, | |||
__EP_INTERVAL | |||
) |
#define USB_DESC_QUALIFIER_LEN USB_DT_DEVICE_QUALIFIER_SIZE |
#define USB_DESC_QUALIFIER | ( | __VERSION, | |
__CLASS, | |||
__SUB_CLASS, | |||
__PROTOCOL, | |||
__EP0_SIZE, | |||
__CONFIG_NUM | |||
) |
#define USB_DESC_IAD_LEN USB_DT_INTERFACE_ASSOCIATION_SIZE |
#define USB_DESC_IAD | ( | __IFS_START, | |
__IFS_NUM, | |||
__CLASS, | |||
__SUBCLASS, | |||
__PROTOCOL, | |||
__I_FUNC | |||
) |
#define USB_DESC_STRING_LEN | ( | __STR_LEN | ) | ((__STR_LEN) + 2) |
#define USB_DESC_STRING | ( | __STR_LEN, | |
... | |||
) |