blob: d347ef67f15a1a7f1366a77051fb239b967a4b55 [file] [log] [blame]
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef HID_SENSOR_DEF_H_
#define HID_SENSOR_DEF_H_
namespace Hid {
namespace Sensor {
namespace GeneralUsage {
enum {
STATE = 0x200201,
EVENT = 0x200202,
};
} //namespace Usage
namespace PropertyUsage {
enum {
FRIENDLY_NAME = 0x200301,
MINIMUM_REPORT_INTERVAL = 0x200304,
PERSISTENT_UNIQUE_ID = 0x200302,
POWER_STATE = 0x200319,
RANGE_MAXIMUM = 0x200314,
RANGE_MINIMUM = 0x200315,
REPORTING_STATE = 0x200316,
REPORT_INTERVAL = 0x20030E,
RESOLUTION = 0x200313,
SAMPLING_RATE =0x200317,
SENSOR_CONNECTION_TYPE = 0x200309,
SENSOR_DESCRIPTION = 0x200308,
SENSOR_MANUFACTURER = 0x200305,
SENSOR_MODEL = 0x200306,
SENSOR_SERIAL_NUMBER = 0x200307,
SENSOR_STATUS = 0x200303,
VENDOR_LE_TRANSPORT = 0x20F410,
};
} // nsmespace PropertyUsage
namespace SensorTypeUsage {
enum {
ACCELEROMETER_3D = 0x200073,
COMPASS_3D = 0x200083,
CUSTOM = 0x2000E1,
DEVICE_ORIENTATION = 0x20008A,
GYROMETER_3D = 0x200076,
};
} // namespace SensorTypeUsage
namespace ReportUsage {
enum {
ACCELERATION_X_AXIS = 0x200453,
ACCELERATION_Y_AXIS = 0x200454,
ACCELERATION_Z_AXIS = 0x200455,
ANGULAR_VELOCITY_X_AXIS = 0x200457,
ANGULAR_VELOCITY_Y_AXIS = 0x200458,
ANGULAR_VELOCITY_Z_AXIS = 0x200459,
CUSTOM_VALUE_1 = 0x200544,
CUSTOM_VALUE_2 = 0x200545,
CUSTOM_VALUE_3 = 0x200546,
CUSTOM_VALUE_4 = 0x200547,
CUSTOM_VALUE_5 = 0x200548,
CUSTOM_VALUE_6 = 0x200549,
MAGNETIC_FLUX_X_AXIS = 0x200485,
MAGNETIC_FLUX_Y_AXIS = 0x200486,
MAGNETIC_FLUX_Z_AXIS = 0x200487,
MAGNETOMETER_ACCURACY = 0x200488,
ORIENTATION_QUATERNION = 0x200483,
};
} // namespace ReportUsage
namespace ReportingStateUsage {
enum {
REPORTING_STATE_NO_EVENTS = 0x0840,
REPORTING_STATE_ALL_EVENTS = 0x0841,
REPORTING_STATE_REPORT_THRESHOLD_EVENTS = 0x0842,
REPORTING_STATE_REPORT_WAKE_ON_NO_EVENTS = 0x0843,
REPORTING_STATE_REPORT_WAKE_ON_ALL_EVENTS = 0x0844,
REPORTING_STATE_REPORT_WAKE_ON_THRESHOLD_EVENTS = 0x0845,
};
} // namespace ReportingStateUsage
namespace PowerStateUsage {
enum {
POWER_STATE_UNDEFINED = 0x0850,
POWER_STATE_D0_FULL_POWER = 0x0851,
POWER_STATE_D1_LOW_POWER = 0x0852,
POWER_STATE_D2_STANDBY_POWER_WITH_WAKEUP = 0x0853,
POWER_STATE_D3_SLEEP_WITH_WAKEUP = 0x0854,
POWER_STATE_D4_POWER_OFF = 0x0855,
};
} // namespace PowerStateUsage
namespace LeTransportUsage {
enum {
LE_TRANSPORT_ACL = 0xF800,
LE_TRANSPORT_ISO = 0xF801,
};
} // namespace LeTransportUsage
} // namespace Sensor
} // namespace Hid
#endif // HID_SENSOR_DEF_H_