summaryrefslogtreecommitdiff
path: root/modules/sensors/dynamic_sensor/HidSensorDef.h
blob: 8f47a8501a4bc52011f55da52b58e89b0fc9bb6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
 * 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,
};
} // 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 Sensor
} // namespace Hid
#endif // HID_SENSOR_DEF_H_