mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
sensor: Added 6dof motion and gesture related types.
For details, see: https://developer.android.com/reference/android/hardware/SensorEvent#values Signed-off-by: likun17 <likun17@xiaomi.com>
This commit is contained in:
+25
-10
@@ -161,36 +161,51 @@ static const struct sensor_meta_s g_sensor_meta[] =
|
||||
{0, NULL},
|
||||
{sizeof(struct sensor_accel), "accel"},
|
||||
{sizeof(struct sensor_mag), "mag"},
|
||||
{sizeof(struct sensor_uv), "uv"},
|
||||
{sizeof(struct sensor_orientation), "orientation"},
|
||||
{sizeof(struct sensor_gyro), "gyro"},
|
||||
{sizeof(struct sensor_light), "light"},
|
||||
{sizeof(struct sensor_baro), "baro"},
|
||||
{sizeof(struct sensor_noise), "noise"},
|
||||
{sizeof(struct sensor_prox), "prox"},
|
||||
{sizeof(struct sensor_rgb), "rgb"},
|
||||
{sizeof(struct sensor_hall), "hall"},
|
||||
{sizeof(struct sensor_ir), "ir"},
|
||||
{sizeof(struct sensor_accel), "linear_accel"},
|
||||
{sizeof(struct sensor_rotation), "rotation"},
|
||||
{sizeof(struct sensor_humi), "humi"},
|
||||
{sizeof(struct sensor_temp), "temp"},
|
||||
{sizeof(struct sensor_pm25), "pm25"},
|
||||
{sizeof(struct sensor_pm1p0), "pm1p0"},
|
||||
{sizeof(struct sensor_pm10), "pm10"},
|
||||
{sizeof(struct sensor_co2), "co2"},
|
||||
{sizeof(struct sensor_hcho), "hcho"},
|
||||
{sizeof(struct sensor_tvoc), "tvoc"},
|
||||
{sizeof(struct sensor_event), "motion_detect"},
|
||||
{sizeof(struct sensor_event), "step_detector"},
|
||||
{sizeof(struct sensor_step_counter), "step_counter"},
|
||||
{sizeof(struct sensor_ph), "ph"},
|
||||
{sizeof(struct sensor_hrate), "hrate"},
|
||||
{sizeof(struct sensor_event), "tilt_detector"},
|
||||
{sizeof(struct sensor_event), "wake_gesture"},
|
||||
{sizeof(struct sensor_event), "glance_gesture"},
|
||||
{sizeof(struct sensor_event), "pickup_gesture"},
|
||||
{sizeof(struct sensor_event), "wrist_tilt"},
|
||||
{sizeof(struct sensor_orientation), "device_orientation"},
|
||||
{sizeof(struct sensor_pose_6dof), "pose_6dof"},
|
||||
{sizeof(struct sensor_gas), "gas"},
|
||||
{sizeof(struct sensor_event), "significant_motion"},
|
||||
{sizeof(struct sensor_hbeat), "hbeat"},
|
||||
{sizeof(struct sensor_force), "force"},
|
||||
{sizeof(struct sensor_hall), "hall"},
|
||||
{sizeof(struct sensor_event), "offbody_detector"},
|
||||
{sizeof(struct sensor_uv), "uv"},
|
||||
{sizeof(struct sensor_angle), "hinge_angle"},
|
||||
{sizeof(struct sensor_ir), "ir"},
|
||||
{sizeof(struct sensor_hcho), "hcho"},
|
||||
{sizeof(struct sensor_tvoc), "tvoc"},
|
||||
{sizeof(struct sensor_dust), "dust"},
|
||||
{sizeof(struct sensor_wake_gesture), "wake_gesture"},
|
||||
{sizeof(struct sensor_ecg), "ecg"},
|
||||
{sizeof(struct sensor_ppgd), "ppgd"},
|
||||
{sizeof(struct sensor_ppgq), "ppgq"},
|
||||
{sizeof(struct sensor_impd), "impd"},
|
||||
{sizeof(struct sensor_ots), "ots"},
|
||||
{sizeof(struct sensor_gas), "gas"},
|
||||
{sizeof(struct sensor_co2), "co2"},
|
||||
{sizeof(struct sensor_cap), "cap"},
|
||||
{sizeof(struct sensor_hbeat), "hbeat"},
|
||||
{sizeof(struct sensor_force), "force"},
|
||||
{sizeof(struct sensor_gnss), "gnss"},
|
||||
{sizeof(struct sensor_gnss_satellite), "gnss_satellite"},
|
||||
{sizeof(struct sensor_gnss_measurement), "gnss_measurement"},
|
||||
|
||||
+316
-122
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user