linux/include/linux/hid-sensor-ids.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * HID Sensors Driver
 * Copyright (c) 2012, Intel Corporation.
 */
#ifndef _HID_SENSORS_IDS_H
#define _HID_SENSORS_IDS_H

#define HID_MAX_PHY_DEVICES

#define HID_USAGE_SENSOR_COLLECTION

/* Accel 3D (200073) */
#define HID_USAGE_SENSOR_ACCEL_3D
#define HID_USAGE_SENSOR_DATA_ACCELERATION
#define HID_USAGE_SENSOR_ACCEL_X_AXIS
#define HID_USAGE_SENSOR_ACCEL_Y_AXIS
#define HID_USAGE_SENSOR_ACCEL_Z_AXIS

/* ALS (200041) */
#define HID_USAGE_SENSOR_ALS
#define HID_USAGE_SENSOR_DATA_LIGHT
#define HID_USAGE_SENSOR_LIGHT_ILLUM
#define HID_USAGE_SENSOR_LIGHT_COLOR_TEMPERATURE
#define HID_USAGE_SENSOR_LIGHT_CHROMATICITY
#define HID_USAGE_SENSOR_LIGHT_CHROMATICITY_X
#define HID_USAGE_SENSOR_LIGHT_CHROMATICITY_Y

/* PROX (200011) */
#define HID_USAGE_SENSOR_PROX
#define HID_USAGE_SENSOR_DATA_PRESENCE
#define HID_USAGE_SENSOR_HUMAN_PRESENCE

/* Pressure (200031) */
#define HID_USAGE_SENSOR_PRESSURE
#define HID_USAGE_SENSOR_DATA_ATMOSPHERIC_PRESSURE
#define HID_USAGE_SENSOR_ATMOSPHERIC_PRESSURE

/* Tempreture (200033) */
#define HID_USAGE_SENSOR_TEMPERATURE
#define HID_USAGE_SENSOR_DATA_ENVIRONMENTAL_TEMPERATURE

/* humidity */
#define HID_USAGE_SENSOR_HUMIDITY
#define HID_USAGE_SENSOR_ATMOSPHERIC_HUMIDITY

/* Gyro 3D: (200076) */
#define HID_USAGE_SENSOR_GYRO_3D
#define HID_USAGE_SENSOR_DATA_ANGL_VELOCITY
#define HID_USAGE_SENSOR_ANGL_VELOCITY_X_AXIS
#define HID_USAGE_SENSOR_ANGL_VELOCITY_Y_AXIS
#define HID_USAGE_SENSOR_ANGL_VELOCITY_Z_AXIS

/* Gravity vector */
#define HID_USAGE_SENSOR_GRAVITY_VECTOR

/* ORIENTATION: Compass 3D: (200083) */
#define HID_USAGE_SENSOR_COMPASS_3D
#define HID_USAGE_SENSOR_DATA_ORIENTATION
#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING
#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_X
#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Y
#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Z

#define HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH
#define HID_USAGE_SENSOR_ORIENT_COMP_TRUE_NORTH
#define HID_USAGE_SENSOR_ORIENT_MAGN_NORTH
#define HID_USAGE_SENSOR_ORIENT_TRUE_NORTH

#define HID_USAGE_SENSOR_ORIENT_DISTANCE
#define HID_USAGE_SENSOR_ORIENT_DISTANCE_X
#define HID_USAGE_SENSOR_ORIENT_DISTANCE_Y
#define HID_USAGE_SENSOR_ORIENT_DISTANCE_Z
#define HID_USAGE_SENSOR_ORIENT_DISTANCE_OUT_OF_RANGE

/* ORIENTATION: Inclinometer 3D: (200086) */
#define HID_USAGE_SENSOR_INCLINOMETER_3D
#define HID_USAGE_SENSOR_ORIENT_TILT
#define HID_USAGE_SENSOR_ORIENT_TILT_X
#define HID_USAGE_SENSOR_ORIENT_TILT_Y
#define HID_USAGE_SENSOR_ORIENT_TILT_Z

#define HID_USAGE_SENSOR_DEVICE_ORIENTATION
#define HID_USAGE_SENSOR_RELATIVE_ORIENTATION
#define HID_USAGE_SENSOR_GEOMAGNETIC_ORIENTATION
#define HID_USAGE_SENSOR_ORIENT_ROTATION_MATRIX
#define HID_USAGE_SENSOR_ORIENT_QUATERNION
#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX

#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_X_AXIS
#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Y_AXIS
#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Z_AXIS

/* Time (2000a0) */
#define HID_USAGE_SENSOR_TIME
#define HID_USAGE_SENSOR_TIME_YEAR
#define HID_USAGE_SENSOR_TIME_MONTH
#define HID_USAGE_SENSOR_TIME_DAY
#define HID_USAGE_SENSOR_TIME_HOUR
#define HID_USAGE_SENSOR_TIME_MINUTE
#define HID_USAGE_SENSOR_TIME_SECOND
#define HID_USAGE_SENSOR_TIME_TIMESTAMP

/* Units */
#define HID_USAGE_SENSOR_UNITS_NOT_SPECIFIED
#define HID_USAGE_SENSOR_UNITS_LUX
#define HID_USAGE_SENSOR_UNITS_KELVIN
#define HID_USAGE_SENSOR_UNITS_FAHRENHEIT
#define HID_USAGE_SENSOR_UNITS_PASCAL
#define HID_USAGE_SENSOR_UNITS_NEWTON
#define HID_USAGE_SENSOR_UNITS_METERS_PER_SECOND
#define HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD
#define HID_USAGE_SENSOR_UNITS_FARAD
#define HID_USAGE_SENSOR_UNITS_AMPERE
#define HID_USAGE_SENSOR_UNITS_WATT
#define HID_USAGE_SENSOR_UNITS_HENRY
#define HID_USAGE_SENSOR_UNITS_OHM
#define HID_USAGE_SENSOR_UNITS_VOLT
#define HID_USAGE_SENSOR_UNITS_HERTZ
#define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SEC_SQRD
#define HID_USAGE_SENSOR_UNITS_RADIANS
#define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SECOND
#define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SEC_SQRD
#define HID_USAGE_SENSOR_UNITS_SECOND
#define HID_USAGE_SENSOR_UNITS_GAUSS
#define HID_USAGE_SENSOR_UNITS_GRAM
#define HID_USAGE_SENSOR_UNITS_CENTIMETER
#define HID_USAGE_SENSOR_UNITS_G
#define HID_USAGE_SENSOR_UNITS_MILLISECOND
#define HID_USAGE_SENSOR_UNITS_PERCENT
#define HID_USAGE_SENSOR_UNITS_DEGREES
#define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SECOND

/* Common selectors */
#define HID_USAGE_SENSOR_PROP_DESC
#define HID_USAGE_SENSOR_PROP_FRIENDLY_NAME
#define HID_USAGE_SENSOR_PROP_SERIAL_NUM
#define HID_USAGE_SENSOR_PROP_MANUFACTURER
#define HID_USAGE_SENSOR_PROP_MODEL
#define HID_USAGE_SENSOR_PROP_REPORT_INTERVAL
#define HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS
#define HID_USAGE_SENSOR_PROP_SENSITIVITY_RANGE_PCT
#define HID_USAGE_SENSOR_PROP_SENSITIVITY_REL_PCT
#define HID_USAGE_SENSOR_PROP_ACCURACY
#define HID_USAGE_SENSOR_PROP_RESOLUTION
#define HID_USAGE_SENSOR_PROP_RANGE_MAXIMUM
#define HID_USAGE_SENSOR_PROP_RANGE_MINIMUM
#define HID_USAGE_SENSOR_PROP_REPORT_STATE
#define HID_USAGE_SENSOR_PROY_POWER_STATE

/* Batch mode selectors */
#define HID_USAGE_SENSOR_PROP_REPORT_LATENCY

/* Per data field properties */
#define HID_USAGE_SENSOR_DATA_MOD_NONE
#define HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS
#define HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_REL_PCT

/* Power state enumerations */
#define HID_USAGE_SENSOR_PROP_POWER_STATE_UNDEFINED_ENUM
#define HID_USAGE_SENSOR_PROP_POWER_STATE_D0_FULL_POWER_ENUM
#define HID_USAGE_SENSOR_PROP_POWER_STATE_D1_LOW_POWER_ENUM
#define HID_USAGE_SENSOR_PROP_POWER_STATE_D2_STANDBY_WITH_WAKE_ENUM
#define HID_USAGE_SENSOR_PROP_POWER_STATE_D3_SLEEP_WITH_WAKE_ENUM
#define HID_USAGE_SENSOR_PROP_POWER_STATE_D4_POWER_OFF_ENUM

/* Report State enumerations */
#define HID_USAGE_SENSOR_PROP_REPORTING_STATE_NO_EVENTS_ENUM
#define HID_USAGE_SENSOR_PROP_REPORTING_STATE_ALL_EVENTS_ENUM

/* Custom Sensor (2000e1) */
#define HID_USAGE_SENSOR_HINGE
#define HID_USAGE_SENSOR_DATA_FIELD_LOCATION
#define HID_USAGE_SENSOR_DATA_FIELE_TIME_SINCE_SYS_BOOT
#define HID_USAGE_SENSOR_DATA_FIELD_CUSTOM_USAGE
#define HID_USAGE_SENSOR_DATA_FIELD_CUSTOM_VALUE_BASE
/* Custom Sensor data 28=>x>=0 */
#define HID_USAGE_SENSOR_DATA_FIELD_CUSTOM_VALUE(x)

#endif