hidparser.h File Reference

USB HID report descriptor and report data parser. More...

#include <stdint.h>
#include <adt/list.h>
#include <usb/hid/hid_report_items.h>
#include <usb/hid/hidpath.h>
#include <usb/hid/hidtypes.h>
#include <usb/hid/hiddescriptor.h>

Go to the source code of this file.

Functions

uint8_t usb_hid_get_next_report_id (usb_hid_report_t *report, uint8_t report_id, usb_hid_report_type_t type)
 Returns next report_id of report of specified type.
int usb_hid_parse_report (const usb_hid_report_t *report, const uint8_t *data, size_t size, uint8_t *report_id)
 Parse and act upon a HID report.
size_t usb_hid_report_byte_size (usb_hid_report_t *report, uint8_t report_id, usb_hid_report_type_t type)
 Returns size of report of specified report id and type in bytes.
usb_hid_report_field_tusb_hid_report_get_sibling (usb_hid_report_t *report, usb_hid_report_field_t *field, usb_hid_report_path_t *path, int flags, usb_hid_report_type_t type)
 Function for sequence walking through the report.
uint8_t * usb_hid_report_output (usb_hid_report_t *report, size_t *size, uint8_t report_id)
 Allocates output report buffer for output report.
void usb_hid_report_output_free (uint8_t *output)
 Frees output report buffer.
int usb_hid_report_output_translate (usb_hid_report_t *report, uint8_t report_id, uint8_t *buffer, size_t size)
 Makes the output report buffer for data given in the report structure.
size_t usb_hid_report_size (usb_hid_report_t *report, uint8_t report_id, usb_hid_report_type_t type)
 Returns size of report of specified report id and type in items.


Detailed Description

USB HID report descriptor and report data parser.

Definition in file hidparser.h.


Generated on Thu Jun 2 07:45:54 2011 for HelenOS/USB by  doxygen 1.4.7