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_POWER_DEVICE_H 6 #define _USB_HID_PAGE_POWER_DEVICE_H 7 8 9 /* Reference: 10 * HID Usage Page 0x84: POWER DEVICE 11 * Universal Serial Bus Usage Tables for HID Power Devices Ver. 1.0 12 * http://www.usb.org/developers/devclass_docs/pdcv10.pdf 13 */ 14 15 // Usage IDs 16 enum { 17 B_HID_UID_POW_INAME = 0x01, 18 B_HID_UID_POW_PRESENT_STATUS, 19 B_HID_UID_POW_CHANGED_STATUS, 20 B_HID_UID_POW_UPS, 21 B_HID_UID_POW_POWER_SUPPLY, 22 23 B_HID_UID_POW_BATTERY_SYSTEM = 0x10, 24 B_HID_UID_POW_BATTERY_SYSTEM_ID, 25 B_HID_UID_POW_BATTERY, 26 B_HID_UID_POW_BATERY_ID, 27 B_HID_UID_POW_CHARGER, 28 B_HID_UID_POW_CHARGER_ID, 29 B_HID_UID_POW_POWER_CONVERTER, 30 B_HID_UID_POW_POWER_CONVERTER_ID, 31 B_HID_UID_POW_OUTLET_SYSTEM, 32 B_HID_UID_POW_OUTLET_SYSTEM_ID, 33 B_HID_UID_POW_INPUT, 34 B_HID_UID_POW_INPUT_ID, 35 B_HID_UID_POW_OUTPUT, 36 B_HID_UID_POW_OUTPUT_ID, 37 B_HID_UID_POW_FLOW, 38 B_HID_UID_POW_FLOW_ID, 39 B_HID_UID_POW_OUTLET, 40 B_HID_UID_POW_OUTLET_ID, 41 B_HID_UID_POW_GANG, 42 B_HID_UID_POW_GANG_ID, 43 B_HID_UID_POW_POWER_SUMMARY, 44 B_HID_UID_POW_POWER_SUMMARY_ID, 45 46 B_HID_UID_POW_VOLTAGE = 0x30, 47 B_HID_UID_POW_CURRENT, 48 B_HID_UID_POW_FREQUENCY, 49 B_HID_UID_POW_APPARENT_POWER, 50 B_HID_UID_POW_ACTIVE_POWER, 51 B_HID_UID_POW_PERCENT_LOAD, 52 B_HID_UID_POW_TEMPERATURE, 53 B_HID_UID_POW_HUMIDITY, 54 B_HID_UID_POW_BAD_COUNT, 55 56 B_HID_UID_POW_CONFIG_VOLTAGE = 0x40, 57 B_HID_UID_POW_CONFIG_CURRENT, 58 B_HID_UID_POW_CONFIG_FREQUENCY, 59 B_HID_UID_POW_CONFIG_APPARENT_POWER, 60 B_HID_UID_POW_CONFIG_ACTIVE_POWER, 61 B_HID_UID_POW_CONFIG_PERCENT_LOAD, 62 B_HID_UID_POW_CONFIG_TEMPERATURE, 63 B_HID_UID_POW_CONFIG_HUMIDITY, 64 65 B_HID_UID_POW_SWITCH_ON_CONTROL = 0x50, 66 B_HID_UID_POW_SWITCH_OFF_CONTROL, 67 B_HID_UID_POW_TOGGLE_CONTROL, 68 B_HID_UID_POW_LOW_VOLTAGE_TRANSFER, 69 B_HID_UID_POW_HIGH_VOLTAGE_TRANSFER, 70 B_HID_UID_POW_DELAY_BEFORE_REBOOT, 71 B_HID_UID_POW_DELAY_BEFORE_STARTUP, 72 B_HID_UID_POW_DELAY_BEFORE_SHUTDOWN, 73 B_HID_UID_POW_TEST, 74 B_HID_UID_POW_MODULE_RESET, 75 B_HID_UID_POW_AUDIBLE_ALARM_CONTROL, 76 77 B_HID_UID_POW_PRESENT = 0x60, 78 B_HID_UID_POW_GOOD, 79 B_HID_UID_POW_INTERNAL_FAILURE, 80 B_HID_UID_POW_VOLTAGE_OUT_OF_RANGE, 81 B_HID_UID_POW_FREQUENCY_OUT_OF_RANGE, 82 B_HID_UID_POW_OVERLOAD, 83 B_HID_UID_POW_OVER_CHARGED, 84 B_HID_UID_POW_OVER_TEMPERATURE, 85 B_HID_UID_POW_SHUTDOWN_REQUEST, 86 B_HID_UID_POW_SHUTDOWN_IMMINENT, 87 88 B_HID_UID_POW_SWITCH_ON_OFF =0x6b, 89 B_HID_UID_POW_SWITCHABLE, 90 B_HID_UID_POW_USED, 91 B_HID_UID_POW_BOOST, 92 B_HID_UID_POW_BUCK, 93 B_HID_UID_POW_INITIALIZED, 94 B_HID_UID_POW_TESTED, 95 B_HID_UID_POW_AWAITING_POWER, 96 B_HID_UID_POW_COMMUNICATION_LOST, 97 98 B_HID_UID_POW_IMANUFACTURER = 0xfd, 99 B_HID_UID_POW_IPRODUCT, 100 B_HID_UID_POW_ISERIAL_NUMBER 101 }; 102 103 104 #endif // _USB_HID_PAGE_POWER_DEVICE_H 105