/hardware/invensense/60xx/mlsdk/mllite/ |
D | accel.c | 87 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 …]
|
D | mldl_cfg_mpu.c | 61 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 …]
|
D | mldl_cfg.h | 125 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()
|
D | mldmp.c | 136 if (mldl_cfg->accel && mldl_cfg->accel->resume) in inv_dmp_open() 155 if (NULL != mldl_cfg->accel){ in inv_dmp_open()
|
D | mlBiasNoMotion.c | 160 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()
|
D | ml.c | 204 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 …]
|
D | mlFIFO.c | 279 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()
|
D | mldl.c | 204 mldlCfg.accel = &gAccel; in inv_dl_open()
|
D | mlarray.c | 2192 (long)mldl_cfg->pdata->accel.orientation[i * 3 + j]; in inv_set_accel_bias()
|
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 110 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 …]
|
D | hal_outputs.c | 64 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 …]
|
D | data_builder.h | 107 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/ |
D | data_builder.c | 98 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 …]
|
D | hal_outputs.c | 80 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 …]
|
D | data_builder.h | 127 struct inv_single_sensor_t accel; member 233 inv_error_t inv_build_accel(const long *accel, int status,
|
/hardware/invensense/60xx/mlsdk/mlutils/ |
D | mputest.c | 862 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/ |
D | MPLSensor.cpp | 2527 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()
|
D | MPLSensor.h | 326 void fillAccel(const char* accel, struct sensor_t *list);
|
/hardware/invensense/60xx/libsensors/ |
D | MPLSensor.h | 129 void fillAccel(unsigned char accel, struct sensor_t *list);
|
D | MPLSensor.cpp | 1171 void MPLSensor::fillAccel(unsigned char accel, struct sensor_t *list) in fillAccel() argument 1173 switch (accel) { in fillAccel()
|
/hardware/invensense/65xx/libsensors_iio/ |
D | MPLSensor.cpp | 4486 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 …]
|
D | MPLSensor.h | 520 void fillAccel(const char* accel, struct sensor_t *list);
|
/hardware/invensense/60xx/mlsdk/platform/include/linux/ |
D | mpu.h | 296 struct ext_slave_platform_data accel; member
|