#include <usb/hid/hidparser.h>
#include <stdint.h>
#include <adt/list.h>
Go to the source code of this file.
Data Structures | |
| struct | usb_hid_report_path_t |
| USB HID usage path structure. More... | |
| struct | usb_hid_report_usage_path_t |
| Item of usage path structure. More... | |
Defines | |
| #define | USB_HID_PATH_COMPARE_ANYWHERE 8 |
| Searched couple of usage page and usage can be anywhere in usage path. | |
| #define | USB_HID_PATH_COMPARE_BEGIN 4 |
| Searched usage page must be prefix of the other one. | |
| #define | USB_HID_PATH_COMPARE_END 1 |
| Wanted usage path must be the suffix in the searched one. | |
| #define | USB_HID_PATH_COMPARE_STRICT 0 |
| Wanted usage path must be exactly the same as the searched one. | |
| #define | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY 2 |
| Only usage page are compared along the usage path. | |
Functions | |
| void | usb_hid_print_usage_path (usb_hid_report_path_t *path) |
| int | usb_hid_report_compare_usage_path (usb_hid_report_path_t *report_path, usb_hid_report_path_t *path, int flags) |
| Compares two usage paths structures. | |
| void | usb_hid_report_null_last_item (usb_hid_report_path_t *usage_path) |
| Nulls last item of the usage path structure. | |
| usb_hid_report_path_t * | usb_hid_report_path (void) |
| Allocates and initializes new usage path structure. | |
| int | usb_hid_report_path_append_item (usb_hid_report_path_t *usage_path, int32_t usage_page, int32_t usage) |
| Appends one item (couple of usage_path and usage) into the usage path structure. | |
| usb_hid_report_path_t * | usb_hid_report_path_clone (usb_hid_report_path_t *usage_path) |
| Clone content of given usage path to the new one. | |
| void | usb_hid_report_path_free (usb_hid_report_path_t *path) |
| Releases given usage path structure. | |
| int | usb_hid_report_path_set_report_id (usb_hid_report_path_t *usage_path, uint8_t report_id) |
| Sets report id in usage path structure. | |
| void | usb_hid_report_remove_last_item (usb_hid_report_path_t *usage_path) |
| Removes last item from the usage path structure. | |
| void | usb_hid_report_set_last_item (usb_hid_report_path_t *usage_path, int32_t tag, int32_t data) |
| Modifies last item of usage path structure by given usage page or usage. | |
Definition in file hidpath.h.
1.4.7