SENSOR_DEVICE_HUMAN_SLEEP_DETECTOR,
SENSOR_DEVICE_HUMAN_STRESS_MONITOR,
+ SENSOR_DEVICE_LIDAR = 1000,
+
SENSOR_DEVICE_EXERCISE_WALKING = 0x400,
SENSOR_DEVICE_EXERCISE_RUNNING,
SENSOR_DEVICE_EXERCISE_HIKING,
float max_range;
float resolution;
int min_interval;
+ int max_interval;
int max_batch_count;
bool wakeup_supported;
} sensor_info_t;
CONVERT_TYPE_ATTR(SENSOR_DEVICE_FALL_DETECTION, 0x1),
};
+enum sensor_attribute_common {
+ SENSOR_ATTR_COMMON_START = 0x1000000,
+ SENSOR_ATTR_POWER_STATE = SENSOR_ATTR_COMMON_START + 10001,
+};
+
enum sensor_activity {
SENSOR_ACTIVITY_UNKNOWN = 1,
SENSOR_ACTIVITY_STILL = 2,
int32_t value) {
return true;
}
- virtual bool set_attribute_str(uint32_t id, int32_t attribute, char *value,
+ virtual bool set_attribute_str(uint32_t id, int32_t attribute, const char *value,
int len) {
return true;
}