usbhid_iface_t Struct Reference
[generic device driver support.]

USB HID device communication interface. More...

#include <usbhid_iface.h>


Data Fields

int(* get_event )(ddf_fun_t *fun, uint8_t *buffer, size_t size, size_t *act_size, int *event_nr, unsigned int flags)
 Get single event from the HID device.
size_t(* get_event_length )(ddf_fun_t *fun)
 Get size of the event in bytes.
int(* get_report_descriptor )(ddf_fun_t *fun, uint8_t *desc, size_t size, size_t *act_size)
 Get the report descriptor from the HID device.
size_t(* get_report_descriptor_length )(ddf_fun_t *fun)
 Get size of the report descriptor in bytes.


Detailed Description

USB HID device communication interface.

Definition at line 94 of file usbhid_iface.h.


Field Documentation

int(* get_event)(ddf_fun_t *fun, uint8_t *buffer, size_t size, size_t *act_size, int *event_nr, unsigned int flags)

Get single event from the HID device.

Parameters:
[in] fun DDF function answering the request.
[out] buffer Buffer with raw data from the device.
[out] act_size Actual number of returned events.
[in] flags Flags (see USBHID_IFACE_FLAG_*).
Returns:
Error code.

size_t(* get_event_length)(ddf_fun_t *fun)

Get size of the event in bytes.

Parameters:
[in] fun DDF function answering the request.
Returns:
Size of the event in bytes.

int(* get_report_descriptor)(ddf_fun_t *fun, uint8_t *desc, size_t size, size_t *act_size)

Get the report descriptor from the HID device.

Parameters:
[in] fun DDF function answering the request.
[out] desc Buffer with the report descriptor.
[in] size Size of the allocated desc buffer.
[out] act_size Actual size of the report descriptor returned.
Returns:
Error code.

size_t(* get_report_descriptor_length)(ddf_fun_t *fun)

Get size of the report descriptor in bytes.

Parameters:
[in] fun DDF function answering the request.
Returns:
Size of the report descriptor in bytes.


The documentation for this struct was generated from the following file:
Generated on Thu Jun 2 07:46:01 2011 for HelenOS/USB by  doxygen 1.4.7