hidtypes.h File Reference

HID parser type definitions. More...

#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  HIDNode
struct  HIDPath
struct  HIDData
struct  HIDParser

Defines

#define PATH_SIZE   10
#define USAGE_TAB_SIZE   50
#define MAX_REPORT   300
#define REPORT_DSC_SIZE   6144
#define SIZE_0   0x00
#define SIZE_1   0x01
#define SIZE_2   0x02
#define SIZE_4   0x03
#define SIZE_MASK   0x03
#define TYPE_MAIN   0x00
#define TYPE_GLOBAL   0x04
#define TYPE_LOCAL   0x08
#define TYPE_MASK   0x0C
#define ITEM_COLLECTION   0xA0
#define ITEM_END_COLLECTION   0xC0
#define ITEM_FEATURE   0xB0
#define ITEM_INPUT   0x80
#define ITEM_OUTPUT   0x90
#define ITEM_UPAGE   0x04
#define ITEM_LOG_MIN   0x14
#define ITEM_LOG_MAX   0x24
#define ITEM_PHY_MIN   0x34
#define ITEM_PHY_MAX   0x44
#define ITEM_UNIT_EXP   0x54
#define ITEM_UNIT   0x64
#define ITEM_REP_SIZE   0x74
#define ITEM_REP_ID   0x84
#define ITEM_REP_COUNT   0x94
#define ITEM_USAGE   0x08
#define ITEM_STRING   0x78
#define ITEM_LONG   0xFC
#define ITEM_MASK   0xFC
#define ATTR_DATA_CST   0x01
#define ATTR_NVOL_VOL   0x80

Typedefs

typedef unsigned char uchar
typedef short wchar


Detailed Description

HID parser type definitions.

Header GPL

Todo:
Properly tag all files with GPL (as appropriate)

Definition in file hidtypes.h.


Define Documentation

#define ATTR_DATA_CST   0x01

Definition at line 85 of file hidtypes.h.

#define ATTR_NVOL_VOL   0x80

Definition at line 86 of file hidtypes.h.

#define ITEM_COLLECTION   0xA0

Definition at line 57 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_END_COLLECTION   0xC0

Definition at line 58 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_FEATURE   0xB0

Definition at line 59 of file hidtypes.h.

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

#define ITEM_INPUT   0x80

Definition at line 60 of file hidtypes.h.

Referenced by hid_get_input_report(), and HIDParse().

#define ITEM_LOG_MAX   0x24

Definition at line 66 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_LOG_MIN   0x14

Definition at line 65 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_LONG   0xFC

Definition at line 80 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_MASK   0xFC

Definition at line 82 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_OUTPUT   0x90

Definition at line 61 of file hidtypes.h.

Referenced by hid_set_output_report(), and HIDParse().

#define ITEM_PHY_MAX   0x44

Definition at line 68 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_PHY_MIN   0x34

Definition at line 67 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_REP_COUNT   0x94

Definition at line 73 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_REP_ID   0x84

Definition at line 72 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_REP_SIZE   0x74

Definition at line 71 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_STRING   0x78

Definition at line 77 of file hidtypes.h.

#define ITEM_UNIT   0x64

Definition at line 70 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_UNIT_EXP   0x54

Definition at line 69 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_UPAGE   0x04

Definition at line 64 of file hidtypes.h.

Referenced by HIDParse().

#define ITEM_USAGE   0x08

Definition at line 76 of file hidtypes.h.

Referenced by HIDParse().

#define MAX_REPORT   300

Including FEATURE, INPUT and OUTPUT

Definition at line 37 of file hidtypes.h.

Referenced by GetReportOffset(), and HIDParse().

#define PATH_SIZE   10

maximum depth for Path

Definition at line 33 of file hidtypes.h.

Referenced by HIDParse().

#define REPORT_DSC_SIZE   6144

Size max of Report Descriptor

Definition at line 40 of file hidtypes.h.

Referenced by hid_prepare_report_descriptor(), and HIDParse().

#define SIZE_0   0x00

Definition at line 45 of file hidtypes.h.

#define SIZE_1   0x01

Definition at line 46 of file hidtypes.h.

#define SIZE_2   0x02

Definition at line 47 of file hidtypes.h.

#define SIZE_4   0x03

Definition at line 48 of file hidtypes.h.

#define SIZE_MASK   0x03

Definition at line 49 of file hidtypes.h.

Referenced by HIDParse().

#define TYPE_GLOBAL   0x04

Definition at line 52 of file hidtypes.h.

#define TYPE_LOCAL   0x08

Definition at line 53 of file hidtypes.h.

#define TYPE_MAIN   0x00

Definition at line 51 of file hidtypes.h.

#define TYPE_MASK   0x0C

Definition at line 54 of file hidtypes.h.

#define USAGE_TAB_SIZE   50

Size of usage stack

Definition at line 34 of file hidtypes.h.

Referenced by HIDParse().


Typedef Documentation

typedef unsigned char uchar

Definition at line 21 of file hidtypes.h.

typedef short wchar

Definition at line 28 of file hidtypes.h.


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