constants.h File Reference

Go to the source code of this file.

Defines

#define USB_TIMEOUT   10000
 (in milliseconds)
#define HID_REPORT_GET   0x01
#define HID_REPORT_SET   0x09
#define HID_GET_IDLE   0x02
#define HID_SET_IDLE   0x0A
#define HID_RT_INPUT   0x01
#define HID_RT_OUTPUT   0x02
#define HID_RT_FEATURE   0x03


Define Documentation

#define HID_GET_IDLE   0x02

Definition at line 21 of file constants.h.

#define HID_REPORT_GET   0x01

Definition at line 18 of file constants.h.

Referenced by hid_get_feature_report(), hid_get_input_report(), and hid_get_item_value().

#define HID_REPORT_SET   0x09

Definition at line 19 of file constants.h.

Referenced by hid_set_feature_report(), and hid_set_output_report().

#define HID_RT_FEATURE   0x03

Definition at line 26 of file constants.h.

Referenced by hid_get_feature_report(), hid_get_item_value(), and hid_set_feature_report().

#define HID_RT_INPUT   0x01

Definition at line 24 of file constants.h.

Referenced by hid_get_input_report().

#define HID_RT_OUTPUT   0x02

Definition at line 25 of file constants.h.

Referenced by hid_set_output_report().

#define HID_SET_IDLE   0x0A

Definition at line 22 of file constants.h.

Referenced by hid_set_idle().

#define USB_TIMEOUT   10000

(in milliseconds)

If you have a low-speed device, it may only be able to send ~160 bytes/sec. Ideally, then, this timeout would be related to the number of bytes expected from the device.

Todo:
Make timeout dependent on size of transfer

Definition at line 16 of file constants.h.

Referenced by hid_get_feature_report(), hid_get_input_report(), hid_get_item_value(), hid_prepare_hid_descriptor(), hid_prepare_report_descriptor(), hid_set_feature_report(), hid_set_idle(), and hid_set_output_report().


Generated on Sun Mar 30 15:28:24 2008 for libhid by  doxygen 1.5.1