haiku/headers/os/drivers/usb/USB_hid_page_arcade.h
Stephan Aßmus b6ec842de4 Patch by x-ist from ticket :
* A lot of HID definitions got extracted from USB_hid.h into their
   own files. Many more definitions have been added from the specs.
 * The names have been moved into the proper B_* namspace.
 * The USB hid driver has been adapted for the changes.

Thanks a lot and sorry for the delay!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 20:23:56 +00:00

49 lines
1.4 KiB
C

/*
* Copyright 2004-2010, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _USB_HID_PAGE_ARCADE_H
#define _USB_HID_PAGE_ARCADE_H
/* Reference:
* HID Usage Page 24: ARCADE
* Open Arcade Architecture Device (OAAD) -
* Data Format Specification Rev. 1.100
* http://www.usb.org/developers/devclass_docs/oaaddataformatsv6.pdf
*/
// Usage IDs
enum {
B_HID_UID_ARC_GENERAL_PURPOSE_IO_CARD = 0x01,
B_HID_UID_ARC_COIN_DOOR,
B_HID_UID_ARC_WATCHDOG_TIMER,
B_HID_UID_ARC_GENERAL_PURPOSE_ANALOG_INPUT_STATE = 0x30,
B_HID_UID_ARC_GENERAL_PURPOSE_DIGITAL_INPUT_STATE,
B_HID_UID_ARC_GENERAL_OPTICAL_INPUT_STATE,
B_HID_UID_ARC_GENERAL_DIGITAL_OUTPUT_STATE,
B_HID_UID_ARC_NUMBER_OF_COIN_DOORS,
B_HID_UID_ARC_COIN_DRAWER_DROP_COUNT,
B_HID_UID_ARC_COIN_DRAWER_START,
B_HID_UID_ARC_COIN_DRAWER_SERVICE,
B_HID_UID_ARC_COIN_DRAWER_TILT,
B_HID_UID_ARC_COIN_DOOR_TEST,
B_HID_UID_ARC_COIN_DOOR_LOCKOUT,
B_HID_UID_ARC_WATCHDOG_TIMEOUT,
B_HID_UID_ARC_WATCHDOG_REBOOT,
B_HID_UID_ARC_WATCHDOG_RESTART,
B_HID_UID_ARC_ALARM_INPUT,
B_HID_UID_ARC_COIN_DOOR_COUNTER,
B_HID_UID_ARC_IO_DIRECTION_MAPPING,
B_HID_UID_ARC_SET_IO_DIRECTION,
B_HID_UID_ARC_EXTENDED_OPTICAL_INPUT_STATE,
B_HID_UID_ARC_PIN_PAD_INPUT_STATE,
B_HID_UID_ARC_PIN_PAD_STATUS,
B_HID_UID_ARC_PIN_PAD_OUTPUT,
B_HID_UID_ARC_PIN_PAD_COMMAND
};
#endif // _USB_HID_PAGE_ARCADE_H