Home
last modified time | relevance | path

Searched refs:accel (Results 1 – 13 of 13) sorted by relevance

/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Ddata_builder.c100 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func()
103 if (sensors.accel.accuracy == 3) { in inv_db_load_func()
188 return sensors.accel.sensitivity; in inv_get_accel_sensitivity()
290 sensors.accel.sample_rate_us = sample_rate_us; in inv_set_accel_sample_rate()
291 sensors.accel.sample_rate_ms = sample_rate_us / 1000; in inv_set_accel_sample_rate()
292 if (sensors.accel.bandwidth == 0) { in inv_set_accel_sample_rate()
293 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_accel_sample_rate()
349 *ts = sensors.accel.timestamp; in inv_raw_sensor_timestamp()
351 if (sensors.accel.timestamp_prev != sensors.accel.timestamp) in inv_raw_sensor_timestamp()
400 } else if ((sensors.accel.status & INV_SENSOR_ON) == 0) { in inv_get_9_axis_timestamp()
[all …]
Dhal_outputs.c129 long accel[3]; in inv_get_sensor_type_accelerometer() local
130 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer()
131 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
132 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
133 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
154 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local
157 inv_get_accel_set(accel, accuracy, &timestamp1); in inv_get_sensor_type_linear_acceleration()
159 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration()
160 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration()
161 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration()
[all …]
Ddata_builder.h132 struct inv_single_sensor_t accel; member
246 inv_error_t inv_build_accel(const long *accel, int status,
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Ddata_builder.c99 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func()
102 if (sensors.accel.accuracy == 3) { in inv_db_load_func()
187 return sensors.accel.sensitivity; in inv_get_accel_sensitivity()
289 sensors.accel.sample_rate_us = sample_rate_us; in inv_set_accel_sample_rate()
290 sensors.accel.sample_rate_ms = sample_rate_us / 1000; in inv_set_accel_sample_rate()
291 if (sensors.accel.bandwidth == 0) { in inv_set_accel_sample_rate()
292 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_accel_sample_rate()
322 *sample_rate_ms = sensors.accel.sample_rate_ms; in inv_get_accel_sample_rate_ms()
359 sensors.accel.bandwidth = bandwidth_hz; in inv_set_accel_bandwidth()
391 return (sensors.accel.status & INV_SENSOR_ON) == INV_SENSOR_ON; in inv_get_accel_on()
[all …]
Dhal_outputs.c81 long accel[3]; in inv_get_sensor_type_accelerometer() local
82 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer()
83 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
84 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
85 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
106 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local
109 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_linear_acceleration()
111 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration()
112 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration()
113 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration()
[all …]
Ddata_builder.h129 struct inv_single_sensor_t accel; member
243 inv_error_t inv_build_accel(const long *accel, int status,
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Ddatalogger_outputs.c109 struct inv_single_sensor_t *pa = &dl_out.sc.accel; in inv_get_sensor_type_accel_raw_short()
128 long accel[3]; in inv_get_sensor_type_accel_float() local
129 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accel_float()
131 values[0] = (float) -accel[0] / 65536.f; in inv_get_sensor_type_accel_float()
132 values[1] = (float) -accel[1] / 65536.f; in inv_get_sensor_type_accel_float()
133 values[2] = (float) -accel[2] / 65536.f; in inv_get_sensor_type_accel_float()
272 struct inv_single_sensor_t *pa = &dl_out.sc.accel; in inv_get_sensor_type_gravity_float()
Dand_constructor.c154 long accel[3]; in inv_playback() local
157 int32_to_long(buffer, accel, 3); in inv_playback()
158 inv_build_accel(accel, 0, ts); in inv_playback()
Dmain.c385 float accel[3]; in fifo_callback() local
386 inv_get_accel_float(accel); in fifo_callback()
387 PRINT_3ELM_ARRAY_FLOAT(10, 5, accel); in fifo_callback()
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DREADME8 support for continuous sensors like accel, and gyro whereas the other
/hardware/invensense/65xx/libsensors_iio/
DMPLSensor.cpp4756 void MPLSensor::fillAccel(const char* accel, struct sensor_t *list) in fillAccel() argument
4760 if (accel) { in fillAccel()
4761 if(accel != NULL && strcmp(accel, "BMA250") == 0) { in fillAccel()
4767 } else if (accel != NULL && strcmp(accel, "MPU6050") == 0) { in fillAccel()
4773 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4779 } else if (accel != NULL && strcmp(accel, "MPU6515") == 0) { in fillAccel()
4785 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4791 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4797 } else if (accel != NULL && strcmp(accel, "MPU9150") == 0) { in fillAccel()
4803 } else if (accel != NULL && strcmp(accel, "MPU9250") == 0) { in fillAccel()
[all …]
DMPLSensor.h542 void fillAccel(const char* accel, struct sensor_t *list);
/hardware/invensense/6515/libsensors_iio/
DMPLSensor.h550 void fillAccel(const char* accel, struct sensor_t *list);