|
#define | htousbs(v) (v) |
|
#define | htousbl(v) (v) |
|
#define | USB_EP_IN(ep) ((uint8_t) (0x80 | ((ep) & 0xF))) |
|
#define | USB_EP_OUT(ep) ((uint8_t) (0x00 | ((ep) & 0xF))) |
|
#define | HID_ITEM_TYPE_MAIN 0x0 |
|
#define | HID_ITEM_TYPE_GLOBAL 0x1 |
|
#define | HID_ITEM_TYPE_LOCAL 0x2 |
|
#define | HID_ITEM_TYPE_RSVD 0x3 |
|
#define | HID_TAG_GLOBAL_USAGE_PAGE 0x0 /* 0b0000 */ |
|
#define | HID_TAG_GLOBAL_LOGICAL_MIN 0x1 /* 0b0001 */ |
|
#define | HID_TAG_GLOBAL_LOGICAL_MAX 0x2 /* 0b0010 */ |
|
#define | HID_TAG_GLOBAL_PHYS_MIN 0x3 /* 0b0011 */ |
|
#define | HID_TAG_GLOBAL_PHYS_MAX 0x4 /* 0b0100 */ |
|
#define | HID_TAG_GLOBAL_UNIT_EXP 0x5 /* 0b0101 */ |
|
#define | HID_TAG_GLOBAL_UNIT 0x6 /* 0b0110 */ |
|
#define | HID_TAG_GLOBAL_REPORT_SIZE 0x7 /* 0b0111 */ |
|
#define | HID_TAG_GLOBAL_REPORT_ID 0x8 /* 0b1000 */ |
|
#define | HID_TAG_GLOBAL_REPORT_CNT 0x9 /* 0b1001 */ |
|
#define | HID_TAG_GLOBAL_PUSH 0xA /* 0b1010 */ |
|
#define | HID_TAG_GLOBAL_POP 0xB /* 0b1011 */ |
|
#define | HID_TAG_MAIN_INPUT 0x8 /* 0b1000 */ |
|
#define | HID_TAG_MAIN_OUTPUT 0x9 /* 0b1001 */ |
|
#define | HID_TAG_MAIN_COLLECTION 0xA /* 0b1010 */ |
|
#define | HID_TAG_MAIN_FEATURE 0xB /* 0b1011 */ |
|
#define | HID_TAG_MAIN_ENDCOLLECTION 0xC /* 0b1100 */ |
|
#define | HID_TAG_LOCAL_USAGE 0x0 /* 0b0000 */ |
|
#define | HID_TAG_LOCAL_USAGE_MIN 0x1 /* 0b0001 */ |
|
#define | HID_TAG_LOCAL_USAGE_MAX 0x2 /* 0b0010 */ |
|
#define | HID_TAG_LOCAL_DESIG_INDEX 0x3 /* 0b0011 */ |
|
#define | HID_TAG_LOCAL_DESIG_MIN 0x4 /* 0b0100 */ |
|
#define | HID_TAG_LOCAL_DESIG_MAX 0x5 /* 0b0101 */ |
|
#define | HID_TAG_LOCAL_STRING_INDEX 0x7 /* 0b0111 */ |
|
#define | HID_TAG_LOCAL_STRING_MIN 0x8 /* 0b1000 */ |
|
#define | HID_TAG_LOCAL_STRING_MAX 0x9 /* 0b1001 */ |
|
#define | HID_TAG_LOCAL_DELIMITER 0xA /* 0b1010 */ |
|
#define | HID_TAG_RSVD 0xF /* 0b1111 */ |
|
#define | HID_ITEM_SIZE_0 0 |
|
#define | HID_ITEM_SIZE_1 1 |
|
#define | HID_ITEM_SIZE_2 2 |
|
#define | HID_ITEM_SIZE_4 3 /* Yes, 4 bytes is represented with a size field = 3 */ |
|
#define | HID_SHORT_ITEM(tag, type, size) |
|
#define | HID_LONG_ITEM HID_SHORT_ITEM(HID_TAG_RSVD, HID_ITEM_TYPE_RSVD, HID_ITEM_SIZE_2) |
|
#define | HID_MAIN_ITEM_0(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_MAIN, HID_ITEM_SIZE_0) |
|
#define | HID_MAIN_ITEM_1(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_MAIN, HID_ITEM_SIZE_1) |
|
#define | HID_MAIN_ITEM_2(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_MAIN, HID_ITEM_SIZE_2) |
|
#define | HID_MAIN_ITEM_4(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_MAIN, HID_ITEM_SIZE_4) |
|
#define | HID_GLOBAL_ITEM_0(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_GLOBAL, HID_ITEM_SIZE_0) |
|
#define | HID_GLOBAL_ITEM_1(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_GLOBAL, HID_ITEM_SIZE_1) |
|
#define | HID_GLOBAL_ITEM_2(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_GLOBAL, HID_ITEM_SIZE_2) |
|
#define | HID_GLOBAL_ITEM_4(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_GLOBAL, HID_ITEM_SIZE_4) |
|
#define | HID_LOCAL_ITEM_0(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_LOCAL, HID_ITEM_SIZE_0) |
|
#define | HID_LOCAL_ITEM_1(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_LOCAL, HID_ITEM_SIZE_1) |
|
#define | HID_LOCAL_ITEM_2(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_LOCAL, HID_ITEM_SIZE_2) |
|
#define | HID_LOCAL_ITEM_4(tag) HID_SHORT_ITEM((tag), HID_ITEM_TYPE_LOCAL, HID_ITEM_SIZE_4) |
|
#define | USB_REQ_TYPE_STANDARD 0x00 |
|
#define | USB_REQ_TYPE_CLASS 0x20 |
|
#define | USB_REQ_TYPE_VENDOR 0x40 |
|
#define | USB_REQ_TYPE_MASK 0x60 |
|
#define | USB_REQ_RECIPIENT_DEVICE 0x00 |
|
#define | USB_REQ_RECIPIENT_INTERFACE 0x01 |
|
#define | USB_REQ_RECIPIENT_ENDPOINT 0x02 |
|
#define | USB_REQ_RECIPIENT_MASK 0x03 |
|
#define | USB_LANGID_ENGLISH_US 0x0409 |
|
#define | USB_OP_DEVICE_VER(board_id, board_mode) |
|
- Author
- The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
-
Tau Labs, http://taulabs.org, Copyright (C) 2013
-
dRonin, http://dRonin.org/, Copyright (C) 2015-2016
Definition in file pios_usb_defs.h.