/hardware/invensense/60xx/mlsdk/mllite/ |
H A D | mldl_cfg_mpu.c | 61 struct ext_slave_platform_data *accel = &mldl_cfg->pdata->accel; local 86 if (mldl_cfg->accel) { 87 MPL_LOGD("slave_accel->suspend = %p\n", mldl_cfg->accel->suspend); 88 MPL_LOGD("slave_accel->resume = %p\n", mldl_cfg->accel->resume); 89 MPL_LOGD("slave_accel->read = %p\n", mldl_cfg->accel->read); 90 MPL_LOGD("slave_accel->type = %02x\n", mldl_cfg->accel->type); 92 mldl_cfg->accel->read_reg); 94 mldl_cfg->accel->read_len); 95 MPL_LOGD("slave_accel->endian = %02x\n", mldl_cfg->accel [all...] |
H A D | mlBiasNoMotion.c | 31 #include "accel.h" 160 long accel[3], temp; local 171 // We always run the accel low pass filter at the highest sample rate possible 172 result = inv_get_accel(accel); 189 inv_obj->accel_lpf[kk] += inv_q30_mult(gain, accel[kk]); 190 temp = accel[0] - inv_obj->accel_lpf[0]; 203 // We have no motion according to accel
|
H A D | mldl_cfg.h | 125 struct ext_slave_descr *accel; member in struct:mldl_cfg 175 mldl_cfg->accel, &mldl_cfg->pdata->accel, 227 mldl_cfg->accel, &mldl_cfg->pdata->accel); 279 data, mldl_cfg->accel, 280 &mldl_cfg->pdata->accel);
|
H A D | mlFIFO.c | 56 #include "accel.h" 279 switch (inv_get_dl_config()->accel->endian) { 337 switch (inv_get_dl_config()->accel->endian) { 933 * @brief Returns 6-element vector of gyro and accel data 934 * @param[out] data 6-element vector of gyro and accel data 1293 * and the last 3 accel data. 1611 * gyros, accel and compass. 2100 long accel[3]; local 2103 result = inv_get_accel(accel); 2109 temp = accel[k [all...] |
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/ |
H A D | hal_outputs.c | 64 long accel[3];
local 65 inv_get_accel_set(accel, accuracy, timestamp);
66 values[0] = accel[0] * ACCEL_CONVERSION;
67 values[1] = accel[1] * ACCEL_CONVERSION;
68 values[2] = accel[2] * ACCEL_CONVERSION;
78 * accel biases while at rest.
87 long gravity[3], accel[3];
local 89 inv_get_accel_set(accel, accuracy, timestamp);
91 accel[0] -= gravity[0] >> 14;
92 accel[ [all...] |
H A D | data_builder.h | 19 /** This is a new sample of accel data */ 107 struct inv_single_sensor_t accel; member in struct:inv_sensor_cal_t 179 inv_error_t inv_build_accel(const long *accel, int status,
|
H A D | data_builder.c | 51 /** Temperature when accel bias was stored. */ 110 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; 151 * it works out to be the maximum accel value in g's * 2^15. 155 return sensors.accel.sensitivity; 235 sensors.accel.sample_rate_us = sample_rate_us; 236 sensors.accel.sample_rate_ms = sample_rate_us / 1000; 237 if (sensors.accel.bandwidth == 0) { 238 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); 268 *sample_rate_ms = sensors.accel.sample_rate_ms; 305 sensors.accel 604 inv_build_accel(const long *accel, int status, inv_time_t timestamp) argument [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
H A D | and_constructor.c | 80 // accel setup 154 long accel[3]; local 157 int32_to_long(buffer, accel, 3); 158 inv_build_accel(accel, 0, ts); 351 // set accel sample rate in MPL in micro seconds
|
H A D | datalogger_outputs.c | 109 struct inv_single_sensor_t *pa = &dl_out.sc.accel; 128 long accel[3]; local 129 inv_get_accel_set(accel, accuracy, timestamp); 131 values[0] = (float) -accel[0] / 65536.f; 132 values[1] = (float) -accel[1] / 65536.f; 133 values[2] = (float) -accel[2] / 65536.f; 272 struct inv_single_sensor_t *pa = &dl_out.sc.accel;
|
H A D | main.c | 385 float accel[3]; local 386 inv_get_accel_float(accel); 387 PRINT_3ELM_ARRAY_FLOAT(10, 5, accel);
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
H A D | hal_outputs.c | 81 long accel[3];
local 82 inv_get_accel_set(accel, accuracy, timestamp);
83 values[0] = accel[0] * ACCEL_CONVERSION;
84 values[1] = accel[1] * ACCEL_CONVERSION;
85 values[2] = accel[2] * ACCEL_CONVERSION;
90 MPL_LOGV("accel values:%f %f %f -%d -%lld", values[0], values[1],
97 * accel biases while at rest.
106 long gravity[3], accel[3];
local 109 inv_get_accel_set(accel, accuracy, timestamp);
111 accel[ 257 long accel[3], quat_6_axis[4]; local 506 long accel[3]; local [all...] |
H A D | data_builder.h | 20 /** This is a new sample of accel data */ 129 struct inv_single_sensor_t accel; member in struct:inv_sensor_cal_t 181 /** accel factory bias in chip frame, hardware units scaled by 2^16, 188 /** temperature when accel bias was stored. */ 204 /** accel bias in chip frame, hardware units scaled by 2^16, +/- 2 gee 243 inv_error_t inv_build_accel(const long *accel, int status,
|
H A D | data_builder.c | 99 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; 102 if (sensors.accel.accuracy == 3) { 183 * it works out to be the maximum accel value in g's * 2^15. 187 return sensors.accel.sensitivity; 289 sensors.accel.sample_rate_us = sample_rate_us; 290 sensors.accel.sample_rate_ms = sample_rate_us / 1000; 291 if (sensors.accel.bandwidth == 0) { 292 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); 322 *sample_rate_ms = sensors.accel.sample_rate_ms; 359 sensors.accel 781 inv_build_accel(const long *accel, int status, inv_time_t timestamp) argument [all...] |
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
H A D | data_builder.h | 20 /** This is a new sample of accel data */ 132 struct inv_single_sensor_t accel; member in struct:inv_sensor_cal_t 184 /** accel factory bias in chip frame, hardware units scaled by 2^16, 191 /** temperature when accel bias was stored. */ 207 /** accel bias in chip frame, hardware units scaled by 2^16, +/- 2 gee 246 inv_error_t inv_build_accel(const long *accel, int status,
|
H A D | hal_outputs.c | 129 long accel[3]; local 130 inv_get_accel_set(accel, accuracy, timestamp); 131 values[0] = accel[0] * ACCEL_CONVERSION; 132 values[1] = accel[1] * ACCEL_CONVERSION; 133 values[2] = accel[2] * ACCEL_CONVERSION; 138 MPL_LOGV("accel values:%f %f %f -%d -%lld", values[0], values[1], 145 * accel biases while at rest. 154 long gravity[3], accel[3]; local 157 inv_get_accel_set(accel, accuracy, ×tamp1); 159 accel[ 297 long accel[3]; local 550 long accel[3]; local [all...] |
H A D | data_builder.c | 100 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; 103 if (sensors.accel.accuracy == 3) { 184 * it works out to be the maximum accel value in g's * 2^15. 188 return sensors.accel.sensitivity; 290 sensors.accel.sample_rate_us = sample_rate_us; 291 sensors.accel.sample_rate_ms = sample_rate_us / 1000; 292 if (sensors.accel.bandwidth == 0) { 293 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); 349 *ts = sensors.accel.timestamp; 351 if (sensors.accel 1007 inv_build_accel(const long *accel, int status, inv_time_t timestamp) argument [all...] |
/hardware/invensense/60xx/libsensors/ |
H A D | MPLSensor.cpp | 48 #include "accel.h" 190 ALOGE("could not open the accel irq device node"); 213 //no accel irq and timer available 215 //ALOGD("MPLSensor falling back to timerirq for accel data"); 616 //ALOGV_IF(EXTRA_VERBOSE, "accel data: %f %f %f", s->acceleration.v[0], s->acceleration.v[1], s->acceleration.v[2]); 1126 /* first add gyro, accel and compass to the list */ 1128 /* fill in accel values */ 1132 ALOGE("Can not get accel id"); 1160 /* fill in Linear accel values */ 1171 void MPLSensor::fillAccel(unsigned char accel, struc argument [all...] |
/hardware/invensense/60xx/mlsdk/platform/include/linux/ |
H A D | mpu.h | 282 * @accel: Accel platform data 296 struct ext_slave_platform_data accel; member in struct:mpu_platform_data
|