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_WEIGHING_DEVICE_H 6*b6ec842dSStephan Aßmus #define _USB_HID_PAGE_WEIGHING_DEVICE_H 7*b6ec842dSStephan Aßmus 8*b6ec842dSStephan Aßmus 9*b6ec842dSStephan Aßmus /* Reference: 10*b6ec842dSStephan Aßmus * HID Usage Page 0x8D: WEIGHING DEVICES 11*b6ec842dSStephan Aßmus * HID Point of Sale Usage Tables Ver. 1.0 12*b6ec842dSStephan Aßmus * http://www.usb.org/developers/devclass_docs/pos1_02.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_WD_WEIGHING_DEVICE = 0x01, 18*b6ec842dSStephan Aßmus 19*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_DEVICE = 0x20, 20*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_I_METRIC, 21*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_II_METRIC, 22*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_III_METRIC, 23*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_IIIL_METRIC, 24*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_IV_METRIC, 25*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_III_ENGLISH, 26*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_IIIL_ENGLISH, 27*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_IV_ENGLISH, 28*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CLASS_GENERIC, 29*b6ec842dSStephan Aßmus 30*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_ATTRIBUTE_REPORT = 0x30, 31*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_CONTROL_REPORT, 32*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_DATA_REPORT, 33*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_REPORT, 34*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_WEIGHT_LIMIT_REPORT, 35*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATISTICS_REPORT, 36*b6ec842dSStephan Aßmus 37*b6ec842dSStephan Aßmus B_HID_UID_WD_DATA_WEIGHT = 0x40, 38*b6ec842dSStephan Aßmus B_HID_UID_WD_DATA_SCALING, 39*b6ec842dSStephan Aßmus 40*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT = 0x50, 41*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_MILLIGRAM, 42*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_GRAM, 43*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_KILOGRAM, 44*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_CARATS, 45*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_TAELS, 46*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_GRAINS, 47*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_PENNYWEIGHTS, 48*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_METRIC_TON, 49*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_AVOIR_TON, 50*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_TROY_OUNCE, 51*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_OUNCE, 52*b6ec842dSStephan Aßmus B_HID_UID_WD_WEIGHT_UNIT_POUND, 53*b6ec842dSStephan Aßmus 54*b6ec842dSStephan Aßmus B_HID_UID_WD_CALIBRATION_COUNT = 0x60, 55*b6ec842dSStephan Aßmus B_HID_UID_WD_REZERO_COUNT, 56*b6ec842dSStephan Aßmus 57*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS = 0x70, 58*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_FAULT, 59*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_STABLE_AT_CENTER_OF_ZERO, 60*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_IN_MOTION, 61*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_WEIGHT_STABLE, 62*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_UNDER_ZERO, 63*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_OVER_WEIGHT_LIMIT, 64*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_REQUIRES_CALIBRATION, 65*b6ec842dSStephan Aßmus B_HID_UID_WD_SCALE_STATUS_REQUIRES_REZEROING, 66*b6ec842dSStephan Aßmus 67*b6ec842dSStephan Aßmus B_HID_UID_WD_ZERO_SCALE = 0x80, 68*b6ec842dSStephan Aßmus B_HID_UID_WD_ENFORCED_ZERO_RETURN 69*b6ec842dSStephan Aßmus }; 70*b6ec842dSStephan Aßmus 71*b6ec842dSStephan Aßmus 72*b6ec842dSStephan Aßmus #endif // _USB_HID_PAGE_WEIGHING_DEVICE_H 73