Home
last modified time | relevance | path

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

/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 = %02x\n", (int)mldl_cfg->accel->suspend); in mpu_print_cfg()
88 MPL_LOGD("slave_accel->resume = %02x\n", (int)mldl_cfg->accel->resume); in mpu_print_cfg()
89 MPL_LOGD("slave_accel->read = %02x\n", (int)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 …]
DmlFIFO.c279 switch (inv_get_dl_config()->accel->endian) { in inv_set_footer()
337 switch (inv_get_dl_config()->accel->endian) { in inv_set_footer()
2100 long accel[3]; in inv_accel_sum_of_sqr() local
2103 result = inv_get_accel(accel); in inv_accel_sum_of_sqr()
2109 temp = accel[kk] >> (16 - (ACC_MAG_SQR_SHIFT / 2)); in inv_accel_sum_of_sqr()
Dmldl.c204 mldlCfg.accel = &gAccel; in inv_dl_open()
Dmlarray.c2192 (long)mldl_cfg->pdata->accel.orientation[i * 3 + j]; in inv_set_accel_bias()
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/
Ddata_builder.c110 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func()
155 return sensors.accel.sensitivity; in inv_get_accel_sensitivity()
235 sensors.accel.sample_rate_us = sample_rate_us; in inv_set_accel_sample_rate()
236 sensors.accel.sample_rate_ms = sample_rate_us / 1000; in inv_set_accel_sample_rate()
237 if (sensors.accel.bandwidth == 0) { in inv_set_accel_sample_rate()
238 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_accel_sample_rate()
268 *sample_rate_ms = sensors.accel.sample_rate_ms; in inv_get_accel_sample_rate_ms()
305 sensors.accel.bandwidth = bandwidth_hz; in inv_set_accel_bandwidth()
337 return (sensors.accel.status & INV_SENSOR_ON) == INV_SENSOR_ON; in inv_get_accel_on()
347 if (sensors.accel.status & INV_SENSOR_ON) { in inv_get_last_timestamp()
[all …]
Dhal_outputs.c64 long accel[3]; in inv_get_sensor_type_accelerometer() local
65 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer()
66 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
67 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
68 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
87 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local
89 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_linear_acceleration()
91 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration()
92 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration()
93 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration()
[all …]
Ddata_builder.h107 struct inv_single_sensor_t accel; member
179 inv_error_t inv_build_accel(const long *accel, int status,
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Ddata_builder.c98 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func()
165 return sensors.accel.sensitivity; in inv_get_accel_sensitivity()
267 sensors.accel.sample_rate_us = sample_rate_us; in inv_set_accel_sample_rate()
268 sensors.accel.sample_rate_ms = sample_rate_us / 1000; in inv_set_accel_sample_rate()
269 if (sensors.accel.bandwidth == 0) { in inv_set_accel_sample_rate()
270 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_accel_sample_rate()
300 *sample_rate_ms = sensors.accel.sample_rate_ms; in inv_get_accel_sample_rate_ms()
337 sensors.accel.bandwidth = bandwidth_hz; in inv_set_accel_bandwidth()
369 return (sensors.accel.status & INV_SENSOR_ON) == INV_SENSOR_ON; in inv_get_accel_on()
379 if (sensors.accel.status & INV_SENSOR_ON) { in inv_get_last_timestamp()
[all …]
Dhal_outputs.c80 long accel[3]; in inv_get_sensor_type_accelerometer() local
81 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer()
82 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
83 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
84 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer()
103 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local
105 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_linear_acceleration()
107 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration()
108 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration()
109 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration()
[all …]
Ddata_builder.h127 struct inv_single_sensor_t accel; member
233 inv_error_t inv_build_accel(const long *accel, int status,
/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()
DMPLSensor.h326 void fillAccel(const char* accel, struct sensor_t *list);
/hardware/invensense/60xx/libsensors/
DMPLSensor.h129 void fillAccel(unsigned char accel, struct sensor_t *list);
DMPLSensor.cpp1171 void MPLSensor::fillAccel(unsigned char accel, struct sensor_t *list) in fillAccel() argument
1173 switch (accel) { in fillAccel()
/hardware/invensense/65xx/libsensors_iio/
DMPLSensor.cpp4486 void MPLSensor::fillAccel(const char* accel, struct sensor_t *list) in fillAccel() argument
4490 if (accel) { in fillAccel()
4491 if(accel != NULL && strcmp(accel, "BMA250") == 0) { in fillAccel()
4497 } else if (accel != NULL && strcmp(accel, "MPU6050") == 0) { in fillAccel()
4503 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4509 } else if (accel != NULL && strcmp(accel, "MPU6515") == 0) { in fillAccel()
4515 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4521 } else if (accel != NULL && strcmp(accel, "MPU6500") == 0) { in fillAccel()
4527 } else if (accel != NULL && strcmp(accel, "MPU9150") == 0) { in fillAccel()
4533 } else if (accel != NULL && strcmp(accel, "MPU3050") == 0) { in fillAccel()
[all …]
DMPLSensor.h520 void fillAccel(const char* accel, struct sensor_t *list);
/hardware/invensense/60xx/mlsdk/platform/include/linux/
Dmpu.h296 struct ext_slave_platform_data accel; member