xref: /haiku/headers/os/drivers/usb/USB_hid_page_magnetic_stripe_reader.h (revision 1c09002cbee8e797a0f8bbfc5678dfadd39ee1a7)
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_MAGNETIC_STRIPE_READER_H
6 #define _USB_HID_PAGE_MAGNETIC_STRIPE_READER_H
7 
8 
9 /* Reference:
10  *		HID Usage Page 0x8E: MAGENTIC STRIPE READER
11  *		HID Point of Sale Usage Tables Ver. 1.0
12  *		http://www.usb.org/developers/devclass_docs/pos1_02.pdf
13  */
14 
15 // Usage IDs
16 enum {
17 	B_HID_UID_MSR_DEVICE_READ_ONLY = 0x01,
18 
19 	B_HID_UID_MSR_TRACK_1_LENGTH = 0x11,
20 	B_HID_UID_MSR_TRACK_2_LENGTH,
21 	B_HID_UID_MSR_TRACK_3_LENGTH,
22 	B_HID_UID_MSR_TRACK_JIS_LENGTH,
23 
24 	B_HID_UID_MSR_TRACK_DATA = 0x20,
25 	B_HID_UID_MSR_TRACK_1_DATA,
26 	B_HID_UID_MSR_TRACK_2_DATA,
27 	B_HID_UID_MSR_TRACK_3_DATA,
28 	B_HID_UID_MSR_TRACK_JIS_DATA
29 };
30 
31 
32 #endif // _USB_HID_PAGE_MAGNETIC_STRIPE_READER_H
33