Zephyr Project API 4.0.99
A Scalable Open Source RTOS
|
Macros | |
#define | HID_ITEM(bTag, bType, bSize) |
Define HID short item. | |
#define | HID_INPUT(a) HID_ITEM(HID_ITEM_TAG_INPUT, HID_ITEM_TYPE_MAIN, 1), a |
Define HID Input item with the data length of one byte. | |
#define | HID_OUTPUT(a) HID_ITEM(HID_ITEM_TAG_OUTPUT, HID_ITEM_TYPE_MAIN, 1), a |
Define HID Output item with the data length of one byte. | |
#define | HID_FEATURE(a) HID_ITEM(HID_ITEM_TAG_FEATURE, HID_ITEM_TYPE_MAIN, 1), a |
Define HID Feature item with the data length of one byte. | |
#define | HID_COLLECTION(a) HID_ITEM(HID_ITEM_TAG_COLLECTION, HID_ITEM_TYPE_MAIN, 1), a |
Define HID Collection item with the data length of one byte. | |
#define | HID_END_COLLECTION HID_ITEM(HID_ITEM_TAG_COLLECTION_END, HID_ITEM_TYPE_MAIN, 0) |
Define HID End Collection (non-data) item. | |
#define | HID_USAGE_PAGE(page) HID_ITEM(HID_ITEM_TAG_USAGE_PAGE, HID_ITEM_TYPE_GLOBAL, 1), page |
Define HID Usage Page item. | |
#define | HID_LOGICAL_MIN8(a) HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 1), a |
Define HID Logical Minimum item with the data length of one byte. | |
#define | HID_LOGICAL_MAX8(a) HID_ITEM(HID_ITEM_TAG_LOGICAL_MAX, HID_ITEM_TYPE_GLOBAL, 1), a |
Define HID Logical Maximum item with the data length of one byte. | |
#define | HID_LOGICAL_MIN16(a, b) HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 2), a, b |
Define HID Logical Minimum item with the data length of two bytes. | |
#define | HID_LOGICAL_MAX16(a, b) HID_ITEM(HID_ITEM_TAG_LOGICAL_MAX, HID_ITEM_TYPE_GLOBAL, 2), a, b |
Define HID Logical Maximum item with the data length of two bytes. | |
#define | HID_LOGICAL_MIN32(a, b, c, d) HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 3), a, b, c, d |
Define HID Logical Minimum item with the data length of four bytes. | |
#define | HID_LOGICAL_MAX32(a, b, c, d) HID_ITEM(HID_ITEM_TAG_LOGICAL_MAX, HID_ITEM_TYPE_GLOBAL, 3), a, b, c, d |
Define HID Logical Maximum item with the data length of four bytes. | |
#define | HID_REPORT_SIZE(size) HID_ITEM(HID_ITEM_TAG_REPORT_SIZE, HID_ITEM_TYPE_GLOBAL, 1), size |
Define HID Report Size item with the data length of one byte. | |
#define | HID_REPORT_ID(id) HID_ITEM(HID_ITEM_TAG_REPORT_ID, HID_ITEM_TYPE_GLOBAL, 1), id |
Define HID Report ID item with the data length of one byte. | |
#define | HID_REPORT_COUNT(count) HID_ITEM(HID_ITEM_TAG_REPORT_COUNT, HID_ITEM_TYPE_GLOBAL, 1), count |
Define HID Report Count item with the data length of one byte. | |
#define | HID_USAGE(idx) HID_ITEM(HID_ITEM_TAG_USAGE, HID_ITEM_TYPE_LOCAL, 1), idx |
Define HID Usage Index item with the data length of one byte. | |
#define | HID_USAGE_MIN8(a) HID_ITEM(HID_ITEM_TAG_USAGE_MIN, HID_ITEM_TYPE_LOCAL, 1), a |
Define HID Usage Minimum item with the data length of one byte. | |
#define | HID_USAGE_MAX8(a) HID_ITEM(HID_ITEM_TAG_USAGE_MAX, HID_ITEM_TYPE_LOCAL, 1), a |
Define HID Usage Maximum item with the data length of one byte. | |
#define | HID_USAGE_MIN16(a, b) HID_ITEM(HID_ITEM_TAG_USAGE_MIN, HID_ITEM_TYPE_LOCAL, 2), a, b |
Define HID Usage Minimum item with the data length of two bytes. | |
#define | HID_USAGE_MAX16(a, b) HID_ITEM(HID_ITEM_TAG_USAGE_MAX, HID_ITEM_TYPE_LOCAL, 2), a, b |
Define HID Usage Maximum item with the data length of two bytes. | |
#define HID_COLLECTION | ( | a | ) | HID_ITEM(HID_ITEM_TAG_COLLECTION, HID_ITEM_TYPE_MAIN, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Collection item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Collection item data |
#define HID_END_COLLECTION HID_ITEM(HID_ITEM_TAG_COLLECTION_END, HID_ITEM_TYPE_MAIN, 0) |
#include <include/zephyr/usb/class/hid.h>
Define HID End Collection (non-data) item.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
#define HID_FEATURE | ( | a | ) | HID_ITEM(HID_ITEM_TAG_FEATURE, HID_ITEM_TYPE_MAIN, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Feature item with the data length of one byte.
a | Feature item data |
#define HID_INPUT | ( | a | ) | HID_ITEM(HID_ITEM_TAG_INPUT, HID_ITEM_TYPE_MAIN, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Input item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Input item data |
#define HID_ITEM | ( | bTag, | |
bType, | |||
bSize | |||
) |
#include <include/zephyr/usb/class/hid.h>
Define HID short item.
bTag | Item tag |
bType | Item type |
bSize | Item data size |
#define HID_LOGICAL_MAX16 | ( | a, | |
b | |||
) | HID_ITEM(HID_ITEM_TAG_LOGICAL_MAX, HID_ITEM_TYPE_GLOBAL, 2), a, b |
#include <include/zephyr/usb/class/hid.h>
Define HID Logical Maximum item with the data length of two bytes.
a | Minimum value lower byte |
b | Minimum value higher byte |
#define HID_LOGICAL_MAX32 | ( | a, | |
b, | |||
c, | |||
d | |||
) | HID_ITEM(HID_ITEM_TAG_LOGICAL_MAX, HID_ITEM_TYPE_GLOBAL, 3), a, b, c, d |
#include <include/zephyr/usb/class/hid.h>
Define HID Logical Maximum item with the data length of four bytes.
a | Minimum value lower byte |
b | Minimum value low middle byte |
c | Minimum value high middle byte |
d | Minimum value higher byte |
#define HID_LOGICAL_MAX8 | ( | a | ) | HID_ITEM(HID_ITEM_TAG_LOGICAL_MAX, HID_ITEM_TYPE_GLOBAL, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Logical Maximum item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Maximum value in logical units |
#define HID_LOGICAL_MIN16 | ( | a, | |
b | |||
) | HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 2), a, b |
#include <include/zephyr/usb/class/hid.h>
Define HID Logical Minimum item with the data length of two bytes.
a | Minimum value lower byte |
b | Minimum value higher byte |
#define HID_LOGICAL_MIN32 | ( | a, | |
b, | |||
c, | |||
d | |||
) | HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 3), a, b, c, d |
#include <include/zephyr/usb/class/hid.h>
Define HID Logical Minimum item with the data length of four bytes.
a | Minimum value lower byte |
b | Minimum value low middle byte |
c | Minimum value high middle byte |
d | Minimum value higher byte |
#define HID_LOGICAL_MIN8 | ( | a | ) | HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Logical Minimum item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Minimum value in logical units |
#define HID_OUTPUT | ( | a | ) | HID_ITEM(HID_ITEM_TAG_OUTPUT, HID_ITEM_TYPE_MAIN, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Output item with the data length of one byte.
For usage examples, see HID_KEYBOARD_REPORT_DESC()
a | Output item data |
#define HID_REPORT_COUNT | ( | count | ) | HID_ITEM(HID_ITEM_TAG_REPORT_COUNT, HID_ITEM_TYPE_GLOBAL, 1), count |
#include <include/zephyr/usb/class/hid.h>
Define HID Report Count item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
count | Number of data fields included in the report |
#define HID_REPORT_ID | ( | id | ) | HID_ITEM(HID_ITEM_TAG_REPORT_ID, HID_ITEM_TYPE_GLOBAL, 1), id |
#include <include/zephyr/usb/class/hid.h>
Define HID Report ID item with the data length of one byte.
id | Report ID |
#define HID_REPORT_SIZE | ( | size | ) | HID_ITEM(HID_ITEM_TAG_REPORT_SIZE, HID_ITEM_TYPE_GLOBAL, 1), size |
#include <include/zephyr/usb/class/hid.h>
Define HID Report Size item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
size | Report field size in bits |
#define HID_USAGE | ( | idx | ) | HID_ITEM(HID_ITEM_TAG_USAGE, HID_ITEM_TYPE_LOCAL, 1), idx |
#include <include/zephyr/usb/class/hid.h>
Define HID Usage Index item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
idx | Number of data fields included in the report |
#define HID_USAGE_MAX16 | ( | a, | |
b | |||
) | HID_ITEM(HID_ITEM_TAG_USAGE_MAX, HID_ITEM_TYPE_LOCAL, 2), a, b |
#include <include/zephyr/usb/class/hid.h>
Define HID Usage Maximum item with the data length of two bytes.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Ending Usage lower byte |
b | Ending Usage higher byte |
#define HID_USAGE_MAX8 | ( | a | ) | HID_ITEM(HID_ITEM_TAG_USAGE_MAX, HID_ITEM_TYPE_LOCAL, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Usage Maximum item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Ending Usage |
#define HID_USAGE_MIN16 | ( | a, | |
b | |||
) | HID_ITEM(HID_ITEM_TAG_USAGE_MIN, HID_ITEM_TYPE_LOCAL, 2), a, b |
#include <include/zephyr/usb/class/hid.h>
Define HID Usage Minimum item with the data length of two bytes.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Starting Usage lower byte |
b | Starting Usage higher byte |
#define HID_USAGE_MIN8 | ( | a | ) | HID_ITEM(HID_ITEM_TAG_USAGE_MIN, HID_ITEM_TYPE_LOCAL, 1), a |
#include <include/zephyr/usb/class/hid.h>
Define HID Usage Minimum item with the data length of one byte.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
a | Starting Usage |
#define HID_USAGE_PAGE | ( | page | ) | HID_ITEM(HID_ITEM_TAG_USAGE_PAGE, HID_ITEM_TYPE_GLOBAL, 1), page |
#include <include/zephyr/usb/class/hid.h>
Define HID Usage Page item.
For usage examples, see HID_MOUSE_REPORT_DESC(), HID_KEYBOARD_REPORT_DESC()
page | Usage Page |