#include <usb/hid/hidparser.h>
#include <errno.h>
#include <stdio.h>
#include <malloc.h>
#include <mem.h>
#include <usb/debug.h>
#include <assert.h>
Go to the source code of this file.
Defines | |
| #define | USB_HID_SAME_USAGE(usage1, usage2) ((usage1 == usage2) || (usage1 == 0) || (usage2 == 0)) |
| Compares two usages if they are same or not or one of the usages is not set. | |
| #define | USB_HID_SAME_USAGE_PAGE(page1, page2) ((page1 == page2) || (page1 == 0) || (page2 == 0)) |
| Compares two usage pages if they are same or not or one of them is not set. | |
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 *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.c.
1.4.7