Fix FreeBSD build.
[haiku.git] / headers / os / drivers / usb / USB_hid_page_bar_code_scanner.h
blob7dbff32bf5cd31ae3cee0cd3be8486b3ba093c19
1 /*
2 * Copyright 2004-2010, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _USB_HID_PAGE_BAR_CODE_SCANNER_H
6 #define _USB_HID_PAGE_BAR_CODE_SCANNER_H
9 /* Reference:
10 * HID Usage Page 0x8C: BAR CODE SCANNER
11 * HID Point of Sale Usage Tables Ver. 1.0
12 * http://www.usb.org/developers/devclass_docs/pos1_02.pdf
15 // Usage IDs
16 enum {
17 B_HID_UID_BCS_BAR_CODE_BADGE_READER = 0x01,
18 B_HID_UID_BCS_BAR_CODE_SCANNER,
19 B_HID_UID_BCS_DUMB_BAR_CODE_SCANNER,
20 B_HID_UID_BCS_CORDLESS_SCANNER_BASE,
21 B_HID_UID_BCS_BAR_CODE_SCANNER_CRADLE,
23 B_HID_UID_BCS_ATTRIBUTE_REPORT = 0x10,
24 B_HID_UID_BCS_SETTINGS_REPORT,
25 B_HID_UID_BCS_SCANNED_DATA_REPORT,
26 B_HID_UID_BCS_RAW_SCANNED_DATA_REPORT,
27 B_HID_UID_BCS_TRIGGER_REPORT,
28 B_HID_UID_BCS_STATUS_REPORT,
29 B_HID_UID_BCS_UPC_EAN_CONTROL_REPORT,
30 B_HID_UID_BCS_EAN_2_3_LABEL_CONTROL_REPORT,
31 B_HID_UID_BCS_CODE_39_CONTROL_REPORT,
32 B_HID_UID_BCS_INTERLEAVED_2_OF_5_CONTROL_REPORT,
33 B_HID_UID_BCS_STANDARD_2_OF_5_CONTROL_REPORT,
34 B_HID_UID_BCS_MSI_PLESSEY_CONTROL_REPORT,
35 B_HID_UID_BCS_CODABAR_CONTROL_REPORT,
36 B_HID_UID_BCS_CODE_128_CONTROL_REPORT,
37 B_HID_UID_BCS_MISC_1D_CONTROL_REPORT,
38 B_HID_UID_BCS_2D_CONTROL_REPORT,
40 B_HID_UID_BCS_AIMING_POINTER_MODE = 0x30,
41 B_HID_UID_BCS_BAR_CODE_PRESENT_SENSOR,
42 B_HID_UID_BCS_CLASS_1A_LASER,
43 B_HID_UID_BCS_CLASS_2_LASER,
44 B_HID_UID_BCS_HEATER_PRESENT,
45 B_HID_UID_BCS_CONTACT_SCANNER,
46 B_HID_UID_BCS_ELECTRONIC_ARTICLE_SURVEILLANCE_NOTIFICATION,
47 B_HID_UID_BCS_CONSTANT_ELECTRONIC_ARTICLE_SURVEILLANCE,
48 B_HID_UID_BCS_ERROR_INDICATION,
49 B_HID_UID_BCS_FIXED_BEEPER,
50 B_HID_UID_BCS_GOOD_DECODE_INDICATION,
51 B_HID_UID_BCS_HANDS_FREE_SCANNING,
52 B_HID_UID_BCS_INTRINSICALLY_SAFE,
53 B_HID_UID_BCS_KLASSE_EINS_LASER,
54 B_HID_UID_BCS_LONG_RANGE_SCANNER,
55 B_HID_UID_BCS_MIRROR_SPEED_CONTROL,
56 B_HID_UID_BCS_NOT_ON_FILE_INDICATION,
57 B_HID_UID_BCS_PROGRAMMABLE_BEEPER,
58 B_HID_UID_BCS_TRIGGERLESS,
59 B_HID_UID_BCS_WAND,
60 B_HID_UID_BCS_WATER_RESISTANT,
61 B_HID_UID_BCS_MULTI_RANGE_SCANNER,
62 B_HID_UID_BCS_PROXIMITY_SENSOR,
64 B_HID_UID_BCS_FRAGMENT_DECODING = 0x4d,
65 B_HID_UID_BCS_SCANNER_READ_CONFIDENCE,
66 B_HID_UID_BCS_DATA_PREFIX,
67 B_HID_UID_BCS_PREFIX_AIMI,
68 B_HID_UID_BCS_PREFIX_NONE,
69 B_HID_UID_BCS_PREFIX_PROPRIETARY,
71 B_HID_UID_BCS_ACTIVE_TIME = 0x55,
72 B_HID_UID_BCS_AIMING_LASER_PATTERN,
73 B_HID_UID_BCS_BAR_CODE_PRESENT,
74 B_HID_UID_BCS_BEEPER_STATE,
75 B_HID_UID_BCS_LASER_ON_TIME,
76 B_HID_UID_BCS_LASER_STATE,
77 B_HID_UID_BCS_LOCKOUT_TIME,
78 B_HID_UID_BCS_MOTOR_STATE,
79 B_HID_UID_BCS_MOTOR_TIMEOUT,
80 B_HID_UID_BCS_POWER_ON_RESET_SCANNER,
81 B_HID_UID_BCS_PREVENT_READ_OF_BARCODES,
82 B_HID_UID_BCS_INITIATE_BARCODE_READ,
83 B_HID_UID_BCS_TRIGGER_STATE,
84 B_HID_UID_BCS_TRIGGER_MODE,
85 B_HID_UID_BCS_TRIGGER_MODE_BLINKING_LASER_ON,
86 B_HID_UID_BCS_TRIGGER_MODE_CONTINUOUS_LASER_ON,
87 B_HID_UID_BCS_TRIGGER_MODE_LASER_ON_WHILE_PULLED,
88 B_HID_UID_BCS_TRIGGER_MODE_LASER_STAYS_ON_AFTER_TRIGGER_RELEASE,
90 B_HID_UID_BCS_COMMIT_PARAMETERS_TO_NVM = 0x6d,
91 B_HID_UID_BCS_PARAMETER_SCANNING,
92 B_HID_UID_BCS_PARAMETERS_CHANGED,
93 B_HID_UID_BCS_SET_PARAMETER_DEFAULT_VALUES,
95 B_HID_UID_BCS_SCANNER_IN_CRADLE = 0x75,
96 B_HID_UID_BCS_SCANNER_IN_RANGE,
98 B_HID_UID_BCS_AIM_DURATION = 0x7a,
99 B_HID_UID_BCS_GOOD_READ_LAMP_DURATION,
100 B_HID_UID_BCS_GOOD_READ_LAMP_INTENSITY,
101 B_HID_UID_BCS_GOOD_READ_LED,
102 B_HID_UID_BCS_GOOD_READ_TONE_FREQUENCY,
103 B_HID_UID_BCS_GOOD_READ_TONE_LENGTH,
104 B_HID_UID_BCS_GOOD_READ_TONE_VOLUME,
106 B_HID_UID_BCS_NO_READ_MESSAGE = 0x82,
107 B_HID_UID_BCS_NOT_ON_FILE_VOLUME,
108 B_HID_UID_BCS_POWERUP_BEEP,
109 B_HID_UID_BCS_SOUND_ERROR_BEEP,
110 B_HID_UID_BCS_SOUND_NOT_ON_FILE_BEEP,
111 B_HID_UID_BCS_GOOD_READ_WHEN_TO_WRITE,
112 B_HID_UID_BCS_GRWTI_AFTER_DECODE,
113 B_HID_UID_BCS_GRWTI_BEEP_LAMP_AFTER_TRANSMIT,
114 B_HID_UID_BCS_GRWTI_NO_BEEP_LAMP_USE_AT_ALL,
116 B_HID_UID_BCS_BOOKLAND_EAN = 0x91,
117 B_HID_UID_BCS_CONVERT_EAN_8_TO_13_TYPE,
118 B_HID_UID_BCS_CONVERT_UPC_A_TO_EAN_13,
119 B_HID_UID_BCS_CONVERT_UPC_E_TO_A,
120 B_HID_UID_BCS_EAN_13,
121 B_HID_UID_BCS_EAN_8,
122 B_HID_UID_BCS_EAN_99_128_MANDATORY,
123 B_HID_UID_BCS_EAN_99_P5_128_OPTIONAL,
125 B_HID_UID_BCS_UPC_EAN = 0x9a,
126 B_HID_UID_BCS_UPC_EAN_COUPON_CODE,
127 B_HID_UID_BCS_UPC_EAN_PERIODICALS,
128 B_HID_UID_BCS_UPC_A,
129 B_HID_UID_BCS_UPC_A_WITH_128_MANDATORY,
130 B_HID_UID_BCS_UPC_A_WITH_128_OPTIONAL,
131 B_HID_UID_BCS_UPC_A_WITH_P5_OPTIONAL,
132 B_HID_UID_BCS_UPC_E,
133 B_HID_UID_BCS_UPC_E1,
135 B_HID_UID_BCS_PERIODICAL = 0xa9,
136 B_HID_UID_BCS_PERIODICAL_AUTO_DISCRIMINATE_PLUS_2,
137 B_HID_UID_BCS_PERIODICAL_ONLY_DECODE_WITH_PLUS_2,
138 B_HID_UID_BCS_PERIODICAL_IGNORE_PLUS_2,
139 B_HID_UID_BCS_PERIODICAL_AUTO_DISCRIMINATE_PLUS_5,
140 B_HID_UID_BCS_PERIODICAL_ONLY_DECODE_WITH_PLUS_5,
141 B_HID_UID_BCS_PERIODICAL_IGNORE_PLUS_5,
142 B_HID_UID_BCS_CHECK,
143 B_HID_UID_BCS_CHECK_DISABLE_PRICE,
144 B_HID_UID_BCS_CHECK_ENABLE_4_DIGIT_PRICE,
145 B_HID_UID_BCS_CHECK_ENABLE_5_DIGIT_PRICE,
146 B_HID_UID_BCS_CHECK_ENABLE_EUROPEAN_4_DIGIT_PRICE,
147 B_HID_UID_BCS_CHECK_ENABLE_EUROPEAN_5_DIGIT_PRICE,
149 B_HID_UID_BCS_EAN_TWO_LABEL = 0xb7,
150 B_HID_UID_BCS_EAN_THREE_LABEL,
151 B_HID_UID_BCS_EAN_8_FLAG_DIGIT_1,
152 B_HID_UID_BCS_EAN_8_FLAG_DIGIT_2,
153 B_HID_UID_BCS_EAN_8_FLAG_DIGIT_3,
154 B_HID_UID_BCS_EAN_13_FLAG_DIGIT_1,
155 B_HID_UID_BCS_EAN_13_FLAG_DIGIT_2,
156 B_HID_UID_BCS_EAN_13_FLAG_DIGIT_3,
157 B_HID_UID_BCS_ADD_EAN_2_3_LABEL_DEFINITION,
158 B_HID_UID_BCS_CLEAR_ALL_EAN_2_3_LABEL_DEFINITIONS,
160 B_HID_UID_BCS_CODABAR = 0xc3,
161 B_HID_UID_BCS_CODE_128,
163 B_HID_UID_BCS_CODE_39 = 0xc7,
164 B_HID_UID_BCS_CODE_93,
165 B_HID_UID_BCS_FULL_ASCII_CONVERSION,
166 B_HID_UID_BCS_INTERLEAVED_2_OF_5,
167 B_HID_UID_BCS_ITALIAN_PHARMACY_CODE,
168 B_HID_UID_BCS_MSI_PLESSEY,
169 B_HID_UID_BCS_STANDARD_2_OF_5_IATA,
170 B_HID_UID_BCS_STANDARD_2_OF_5,
172 B_HID_UID_BCS_TRANSMIT_START_STOP = 0xd3,
173 B_HID_UID_BCS_TRI_OPTIC,
174 B_HID_UID_BCS_UCC_EAN_128,
175 B_HID_UID_BCS_CHECK_DIGIT,
176 B_HID_UID_BCS_CHECK_DIGIT_DISABLE,
177 B_HID_UID_BCS_CHECK_DIGIT_ENABLE_INTERLEAVED_2_OF_5_OPCC,
178 B_HID_UID_BCS_CHECK_DIGIT_ENABLE_INTERLEAVED_2_OF_5_USS,
179 B_HID_UID_BCS_CHECK_DIGIT_ENABLE_STANDARD_2_OF_5_OPCC,
180 B_HID_UID_BCS_CHECK_DIGIT_ENABLE_STANDARD_2_OF_5_USS,
181 B_HID_UID_BCS_CHECK_DIGIT_ENABLE_ONE_MSI_PLESSEY,
182 B_HID_UID_BCS_CHECK_DIGIT_ENABLE_TWO_MSI_PLESSEY,
183 B_HID_UID_BCS_CHECK_DIGIT_CODABAR_ENABLE,
184 B_HID_UID_BCS_CHECK_DIGIT_CODE_39_ENABLE,
186 B_HID_UID_BCS_DISABLE_CHECK_DIGIT_TRANSMIT = 0xf1,
187 B_HID_UID_BCS_ENABLE_CHECK_DIGIT_TRANSMIT,
189 B_HID_UID_BCS_SYMBOLOGY_IDENTIFIER_1 = 0xfb,
190 B_HID_UID_BCS_SYMBOLOGY_IDENTIFIER_2,
191 B_HID_UID_BCS_SYMBOLOGY_IDENTIFIER_3,
192 B_HID_UID_BCS_DECODED_DATA,
193 B_HID_UID_BCS_DECODE_DATA_CONTINUED,
194 B_HID_UID_BCS_BAR_SPACE_DATA,
195 B_HID_UID_BCS_SCANNER_DATA_ACCURACY,
196 B_HID_UID_BCS_RAW_DATA_POLARITY,
197 B_HID_UID_BCS_POLARITY_INVERT_BAR_CODE,
198 B_HID_UID_BCS_POLARITY_NORMAL_BAR_CODE,
200 B_HID_UID_BCS_MINIMUM_LENGTH_TO_DECODE = 0x106,
201 B_HID_UID_BCS_MAXIMUM_LENGTH_TO_DECODE,
202 B_HID_UID_BCS_FIRST_DISCRETE_LENGTH_TO_DECODE,
203 B_HID_UID_BCS_SECOND_DESCRETE_LENGTH_TO_DECODE,
204 B_HID_UID_BCS_DATA_LENGTH_METHOD,
205 B_HID_UID_BCS_DL_METHOD_READ_ANY,
206 B_HID_UID_BCS_DL_METHOD_CHECK_IN_RANGE,
207 B_HID_UID_BCS_DL_METHOD_CHECK_FOR_DISCRETE,
209 B_HID_UID_BCS_AZTEC_CODE = 0x110,
210 B_HID_UID_BCS_BC412,
211 B_HID_UID_BCS_CHANNEL_CODE,
212 B_HID_UID_BCS_CODE_16,
213 B_HID_UID_BCS_CODE_32,
214 B_HID_UID_BCS_CODE_49,
215 B_HID_UID_BCS_CODE_ONE,
216 B_HID_UID_BCS_COLORCODE,
217 B_HID_UID_BCS_DATA_MATRIX,
218 B_HID_UID_BCS_MAXI_CODE,
219 B_HID_UID_BCS_MICRO_PDF,
220 B_HID_UID_BCS_PDF_417,
221 B_HID_UID_BCS_POSI_CODE,
222 B_HID_UID_BCS_QR_CODE,
223 B_HID_UID_BCS_SUPER_CODE,
224 B_HID_UID_BCS_ULTRA_CODE,
225 B_HID_UID_BCS_USD_5_SLUG_CODE,
226 B_HID_UID_BCS_VERI_CODE
230 #endif // _USB_HID_PAGE_BAR_CODE_SCANNER_H