Home
last modified time | relevance | path

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

12

/hardware/invensense/60xx/mlsdk/mllite/
Daccel.c87 if (NULL != mldl_cfg->accel && in inv_accel_present()
88 NULL != mldl_cfg->accel->resume && in inv_accel_present()
104 return mldl_cfg->pdata->accel.address; in inv_get_slave_addr()
117 if (NULL != mldl_cfg->accel) { in inv_get_accel_id()
118 return mldl_cfg->accel->id; in inv_get_accel_id()
137 signed char *mtx = mldl_cfg->pdata->accel.orientation; in inv_get_accel_data()
138 char accelId = mldl_cfg->accel->id; in inv_get_accel_data()
143 if (mldl_cfg->accel->read_len > sizeof(raw_data)) in inv_get_accel_data()
159 if (EXT_SLAVE_LITTLE_ENDIAN == mldl_cfg->accel->endian) { in inv_get_accel_data()
162 } else if ((EXT_SLAVE_BIG_ENDIAN == mldl_cfg->accel->endian) || in inv_get_accel_data()
[all …]
Dmldl_cfg_mpu.c61 struct ext_slave_platform_data *accel = &mldl_cfg->pdata->accel; in mpu_print_cfg() local
86 if (mldl_cfg->accel) { in mpu_print_cfg()
87 MPL_LOGD("slave_accel->suspend = %p\n", mldl_cfg->accel->suspend); in mpu_print_cfg()
88 MPL_LOGD("slave_accel->resume = %p\n", mldl_cfg->accel->resume); in mpu_print_cfg()
89 MPL_LOGD("slave_accel->read = %p\n", mldl_cfg->accel->read); in mpu_print_cfg()
90 MPL_LOGD("slave_accel->type = %02x\n", mldl_cfg->accel->type); in mpu_print_cfg()
92 mldl_cfg->accel->read_reg); in mpu_print_cfg()
94 mldl_cfg->accel->read_len); in mpu_print_cfg()
95 MPL_LOGD("slave_accel->endian = %02x\n", mldl_cfg->accel->endian); in mpu_print_cfg()
96 MPL_LOGD("slave_accel->range.mantissa= %02x\n", (int)mldl_cfg->accel->range.mantissa); in mpu_print_cfg()
[all …]
Dmldl_cfg.h125 struct ext_slave_descr *accel; member
175 mldl_cfg->accel, &mldl_cfg->pdata->accel, in inv_mpu_read_accel()
227 mldl_cfg->accel, &mldl_cfg->pdata->accel); in inv_mpu_config_accel()
279 data, mldl_cfg->accel, in inv_mpu_get_accel_config()
280 &mldl_cfg->pdata->accel); in inv_mpu_get_accel_config()
Dmldmp.c136 if (mldl_cfg->accel && mldl_cfg->accel->resume) in inv_dmp_open()
155 if (NULL != mldl_cfg->accel){ in inv_dmp_open()
DmlBiasNoMotion.c160 long accel[3], temp; in MLAccelMotionDetection() local
172 result = inv_get_accel(accel); in MLAccelMotionDetection()
189 inv_obj->accel_lpf[kk] += inv_q30_mult(gain, accel[kk]); in MLAccelMotionDetection()
190 temp = accel[0] - inv_obj->accel_lpf[0]; in MLAccelMotionDetection()
Dml.c204 if (NULL != mldl_cfg->accel){ in inv_apply_calibration()
205 accelCal[ii] = mldl_cfg->pdata->accel.orientation[ii]; in inv_apply_calibration()
232 if (NULL != mldl_cfg->accel){ in inv_apply_calibration()
233 RANGE_FIXEDPOINT_TO_FLOAT(mldl_cfg->accel->range, accelScale); in inv_apply_calibration()
254 if (NULL != mldl_cfg->accel){ in inv_apply_calibration()
281 int endian = mldl_cfg->accel->endian; in inv_apply_endian_accel()
283 if (mldl_cfg->pdata->accel.bus != EXT_SLAVE_BUS_SECONDARY) { in inv_apply_endian_accel()
786 if (ACCEL_ID_KXSD9 == mldl_cfg->accel->id) { in inv_set_accel_calibration()
805 if (mldl_cfg->accel->id) { in inv_set_accel_calibration()
855 if (mldl_cfg->accel->id == ACCEL_ID_MMA845X) { in inv_set_accel_calibration()
[all …]
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/
Ddata_builder.c111 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func()
156 return sensors.accel.sensitivity; in inv_get_accel_sensitivity()
236 sensors.accel.sample_rate_us = sample_rate_us; in inv_set_accel_sample_rate()
237 sensors.accel.sample_rate_ms = sample_rate_us / 1000; in inv_set_accel_sample_rate()
238 if (sensors.accel.bandwidth == 0) { in inv_set_accel_sample_rate()
239 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_accel_sample_rate()
295 *ts = sensors.accel.timestamp; in inv_raw_sensor_timestamp()
297 if (sensors.accel.timestamp_prev != sensors.accel.timestamp) in inv_raw_sensor_timestamp()
327 } else if ((sensors.accel.status & INV_SENSOR_ON) == 0) { in inv_get_6_axis_gyro_accel_timestamp()
333 td[1] = sample_rate_us - sensors.accel.sample_rate_us; in inv_get_6_axis_gyro_accel_timestamp()
[all …]
Dhal_outputs.c76 long accel[3]; in inv_get_sensor_type_accelerometer() local
77 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer()
78 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
79 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
80 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
99 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local
102 inv_get_accel_set(accel, accuracy, &timestamp1); in inv_get_sensor_type_linear_acceleration()
104 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration()
105 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration()
106 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration()
[all …]
Ddata_builder.h112 struct inv_single_sensor_t accel; member
184 inv_error_t inv_build_accel(const long *accel, int status,
/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/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
DREADME7 In the disable sequence, this will disable all but accel engine; all outputs
23 When this is enabled, the driver enters low power accel mode and disables all
24 other sensor output (including quaternion, gyro, accel, and compass.) in the
/hardware/invensense/60xx/mlsdk/mlutils/
Dmputest.c862 if (mputestPData->accel.get_slave_descr == NULL) { in inv_test_accel()
867 if (mputestCfgPtr->accel == NULL) { in inv_test_accel()
1160 if (mputestCfgPtr->accel != NULL) { in inv_mpu_test()
1162 RANGE_FIXEDPOINT_TO_FLOAT(mputestCfgPtr->accel->range, fs); in inv_mpu_test()
1344 struct ext_slave_descr *slave = mputestCfgPtr->accel; in test_get_data()
1346 struct ext_slave_platform_data *pdata = &mputestCfgPtr->pdata->accel; in test_get_data()
/hardware/invensense/60xx/libsensors_iio/
DMPLSensor.cpp2527 void MPLSensor::fillAccel(const char* accel, struct sensor_t *list) in fillAccel() argument
2531 if (accel) { in fillAccel()
2532 if(accel != NULL && strcmp(accel, "BMA250") == 0) { in fillAccel()
2538 } else if (accel != NULL && strcmp(accel, "MPU6050") == 0) { in fillAccel()
2544 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
2551 } else if (accel != NULL && strcmp(accel, "MPU9150") == 0) { in fillAccel()
2557 } else if (accel != NULL && strcmp(accel, "MPU3050") == 0) { in fillAccel()
2568 accel); in fillAccel()
/hardware/invensense/60xx/libsensors/
DMPLSensor.h129 void fillAccel(unsigned char accel, struct sensor_t *list);
/hardware/invensense/6515/libsensors_iio/
DMPLSensor.cpp4820 void MPLSensor::fillAccel(const char* accel, struct sensor_t *list) argument
4824 if (accel) {
4825 if(accel != NULL && strcmp(accel, "BMA250") == 0) {
4831 } else if (accel != NULL && strcmp(accel, "MPU6050") == 0) {
4837 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) {
4843 } else if (accel != NULL && strcmp(accel, "MPU6515") == 0) {
4849 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) {
4855 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) {
4861 } else if (accel != NULL && strcmp(accel, "MPU9150") == 0) {
4867 } else if (accel != NULL && strcmp(accel, "MPU9250") == 0) {
[all …]
/hardware/invensense/65xx/libsensors_iio/
DMPLSensor.cpp4776 void MPLSensor::fillAccel(const char* accel, struct sensor_t *list) in fillAccel() argument
4780 if (accel) { in fillAccel()
4781 if(accel != NULL && strcmp(accel, "BMA250") == 0) { in fillAccel()
4787 } else if (accel != NULL && strcmp(accel, "MPU6050") == 0) { in fillAccel()
4793 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4799 } else if (accel != NULL && strcmp(accel, "MPU6515") == 0) { in fillAccel()
4805 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4811 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4817 } else if (accel != NULL && strcmp(accel, "MPU9150") == 0) { in fillAccel()
4823 } else if (accel != NULL && strcmp(accel, "MPU9250") == 0) { in fillAccel()
[all …]
/hardware/invensense/60xx/mlsdk/platform/include/linux/
Dmpu.h296 struct ext_slave_platform_data accel; member

12