Home
last modified time | relevance | path

Searched refs:mldl_cfg (Results 1 – 19 of 19) sorted by relevance

/hardware/invensense/60xx/mlsdk/mllite/
Dmldl_cfg.h85 struct mldl_cfg { struct
135 int inv_mpu_open(struct mldl_cfg *mldl_cfg, argument
140 int inv_mpu_close(struct mldl_cfg *mldl_cfg,
145 int inv_mpu_resume(struct mldl_cfg *mldl_cfg,
151 int inv_mpu_suspend(struct mldl_cfg *mldl_cfg,
159 int inv_mpu_slave_read(struct mldl_cfg *mldl_cfg,
165 static inline int inv_mpu_read_accel(struct mldl_cfg *mldl_cfg, in inv_mpu_read_accel() argument
169 if (!mldl_cfg || !(mldl_cfg->pdata)) { in inv_mpu_read_accel()
174 return inv_mpu_slave_read(mldl_cfg, gyro_handle, accel_handle, in inv_mpu_read_accel()
175 mldl_cfg->accel, &mldl_cfg->pdata->accel, in inv_mpu_read_accel()
[all …]
Dmldl_cfg_mpu.c58 void mpu_print_cfg(struct mldl_cfg * mldl_cfg) in mpu_print_cfg() argument
60 struct mpu_platform_data *pdata = mldl_cfg->pdata; in mpu_print_cfg()
61 struct ext_slave_platform_data *accel = &mldl_cfg->pdata->accel; in mpu_print_cfg()
62 struct ext_slave_platform_data *compass = &mldl_cfg->pdata->compass; in mpu_print_cfg()
63 struct ext_slave_platform_data *pressure = &mldl_cfg->pdata->pressure; in mpu_print_cfg()
65 MPL_LOGD("mldl_cfg.addr = %02x\n", mldl_cfg->addr); in mpu_print_cfg()
66 MPL_LOGD("mldl_cfg.int_config = %02x\n", mldl_cfg->int_config); in mpu_print_cfg()
67 MPL_LOGD("mldl_cfg.ext_sync = %02x\n", mldl_cfg->ext_sync); in mpu_print_cfg()
68 MPL_LOGD("mldl_cfg.full_scale = %02x\n", mldl_cfg->full_scale); in mpu_print_cfg()
69 MPL_LOGD("mldl_cfg.lpf = %02x\n", mldl_cfg->lpf); in mpu_print_cfg()
[all …]
Daccel.c86 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_accel_present() local
87 if (NULL != mldl_cfg->accel && in inv_accel_present()
88 NULL != mldl_cfg->accel->resume && in inv_accel_present()
89 mldl_cfg->requested_sensors & INV_THREE_AXIS_ACCEL) in inv_accel_present()
102 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_get_slave_addr() local
103 if (NULL != mldl_cfg->pdata) in inv_get_slave_addr()
104 return mldl_cfg->pdata->accel.address; in inv_get_slave_addr()
116 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_get_accel_id() local
117 if (NULL != mldl_cfg->accel) { in inv_get_accel_id()
118 return mldl_cfg->accel->id; in inv_get_accel_id()
[all …]
Dpressure.c87 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_pressure_present() local
88 if (NULL != mldl_cfg->pressure && in inv_pressure_present()
89 NULL != mldl_cfg->pressure->resume && in inv_pressure_present()
90 mldl_cfg->requested_sensors & INV_THREE_AXIS_PRESSURE) in inv_pressure_present()
103 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_get_pressure_slave_addr() local
104 if (NULL != mldl_cfg->pdata) in inv_get_pressure_slave_addr()
105 return mldl_cfg->pdata->pressure.address; in inv_get_pressure_slave_addr()
117 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_get_pressure_id() local
118 if (NULL != mldl_cfg->pressure) { in inv_get_pressure_id()
119 return mldl_cfg->pressure->id; in inv_get_pressure_id()
[all …]
Dcompass.c220 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_compass_present() local
221 if (NULL != mldl_cfg->compass && in inv_compass_present()
222 NULL != mldl_cfg->compass->resume && in inv_compass_present()
223 mldl_cfg->requested_sensors & INV_THREE_AXIS_COMPASS) in inv_compass_present()
236 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_get_compass_slave_addr() local
237 if (NULL != mldl_cfg->pdata) in inv_get_compass_slave_addr()
238 return mldl_cfg->pdata->compass.address; in inv_get_compass_slave_addr()
250 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_get_compass_id() local
251 if (NULL != mldl_cfg->compass) { in inv_get_compass_id()
252 return mldl_cfg->compass->id; in inv_get_compass_id()
[all …]
Dmldmp.c82 struct mldl_cfg *mldl_cfg; in inv_dmp_open() local
134 mldl_cfg = inv_get_dl_config(); in inv_dmp_open()
136 if (mldl_cfg->accel && mldl_cfg->accel->resume) in inv_dmp_open()
139 if (mldl_cfg->compass && mldl_cfg->compass->resume) in inv_dmp_open()
142 if (mldl_cfg->pressure && mldl_cfg->pressure->resume) in inv_dmp_open()
155 if (NULL != mldl_cfg->accel){ in inv_dmp_open()
Dml.c200 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_apply_calibration() local
203 gyroCal[ii] = mldl_cfg->pdata->orientation[ii]; in inv_apply_calibration()
204 if (NULL != mldl_cfg->accel){ in inv_apply_calibration()
205 accelCal[ii] = mldl_cfg->pdata->accel.orientation[ii]; in inv_apply_calibration()
207 if (NULL != mldl_cfg->compass){ in inv_apply_calibration()
208 magCal[ii] = mldl_cfg->pdata->compass.orientation[ii]; in inv_apply_calibration()
212 switch (mldl_cfg->full_scale) { in inv_apply_calibration()
227 mldl_cfg->full_scale); 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()
[all …]
DmlSetGyroBias.c57 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_convert_bias() local
59 if (mldl_cfg->gyro_sens_trim != 0) { in inv_convert_bias()
60 sf = 2000 * 131 / mldl_cfg->gyro_sens_trim; in inv_convert_bias()
76 biasPrev[i] = (long)mldl_cfg->offset[i]; in inv_convert_bias()
109 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_set_gyro_bias_in_dps() local
115 if (mldl_cfg->gyro_sens_trim != 0) { in inv_set_gyro_bias_in_dps()
116 sf = 2000 * 131 / mldl_cfg->gyro_sens_trim; in inv_set_gyro_bias_in_dps()
DmlFIFO.c467 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_state_change_fifo() local
470 if ((mldl_cfg->requested_sensors & INV_DMP_PROCESSOR) && in inv_state_change_fifo()
598 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_read_and_process_fifo() local
609 if (mldl_cfg->requested_sensors & INV_DMP_PROCESSOR) { in inv_read_and_process_fifo()
1589 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_get_accel() local
1595 (mldl_cfg->requested_sensors & INV_DMP_PROCESSOR)) in inv_get_accel()
1597 (!(mldl_cfg->requested_sensors & INV_DMP_PROCESSOR) && in inv_get_accel()
1961 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_set_fifo_rate() local
1969 if (mldl_cfg->requested_sensors & INV_DMP_PROCESSOR) { in inv_set_fifo_rate()
1982 (mldl_cfg)) / 1000L); in inv_set_fifo_rate()
[all …]
DmlFIFOHW.c280 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_reset_fifo() local
283 if (mldl_cfg->gyro_is_suspended) in inv_reset_fifo()
Dmlarray.c2136 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_set_gyro_bias() local
2138 if (mldl_cfg->gyro_sens_trim != 0) { in inv_set_gyro_bias()
2139 sf = 2000 * 131 / mldl_cfg->gyro_sens_trim; in inv_set_gyro_bias()
2182 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_set_accel_bias() local
2186 if (inv_obj.accel_sens != 0 && mldl_cfg && mldl_cfg->pdata) { in inv_set_accel_bias()
2192 (long)mldl_cfg->pdata->accel.orientation[i * 3 + j]; in inv_set_accel_bias()
Dml_mputest.c60 extern struct mldl_cfg *mputestCfgPtr;
Dmlsupervisor.c92 struct mldl_cfg *mldl_cfg = inv_get_dl_config(); in inv_init_sensor_fusion_supervisor() local
93 if (mldl_cfg->pdata->compass.bus == EXT_SLAVE_BUS_SECONDARY) { in inv_init_sensor_fusion_supervisor()
Dmldl.h124 struct mldl_cfg *inv_get_dl_config(void);
Dmldl.c76 static struct mldl_cfg mldlCfg;
366 struct mldl_cfg *inv_get_dl_config(void) in inv_get_dl_config()
/hardware/invensense/60xx/mlsdk/platform/linux/kernel/
Dmpuirq.h38 int mpuirq_init(struct i2c_client *mpu_client, struct mldl_cfg *mldl_cfg);
/hardware/invensense/60xx/mlsdk/platform/include/linux/
Dmpu.h304 #define MPU_SET_MPU_CONFIG _IOWR(MPU_IOCTL, 0x00, struct mldl_cfg)
305 #define MPU_GET_MPU_CONFIG _IOW(MPU_IOCTL, 0x00, struct mldl_cfg)
307 #define MPU_SET_PLATFORM_DATA _IOWR(MPU_IOCTL, 0x01, struct mldl_cfg)
/hardware/invensense/60xx/mlsdk/mlutils/
Dmputest.c160 struct mldl_cfg *mputestCfgPtr,
208 struct mldl_cfg *mputestCfgPtr = NULL;
1339 struct mldl_cfg *mputestCfgPtr, in test_get_data()
/hardware/invensense/60xx/libsensors/
DMPLSensor.cpp448 struct mldl_cfg *mldl_cfg; in initMPL() local
484 mldl_cfg = inv_get_dl_config(); in initMPL()