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