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