Searched defs:accel (Results 1 - 18 of 18) sorted by relevance

/hardware/invensense/60xx/mlsdk/mllite/
H A Dmldl_cfg_mpu.c61 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 DmlBiasNoMotion.c31 #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 Dmldl_cfg.h125 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 DmlFIFO.c56 #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 Dhal_outputs.c76 long accel[3]; local
77 inv_get_accel_set(accel, accuracy, timestamp);
78 values[0] = accel[0] * ACCEL_CONVERSION;
79 values[1] = accel[1] * ACCEL_CONVERSION;
80 values[2] = accel[2] * ACCEL_CONVERSION;
90 * accel biases while at rest.
99 long gravity[3], accel[3]; local
102 inv_get_accel_set(accel, accuracy, &timestamp1);
104 accel[0] -= gravity[0] >> 14;
105 accel[
[all...]
H A Ddata_builder.h19 /** This is a new sample of accel data */
112 struct inv_single_sensor_t accel; member in struct:inv_sensor_cal_t
184 inv_error_t inv_build_accel(const long *accel, int status,
H A Ddata_builder.c51 /** Temperature when accel bias was stored. */
111 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy;
152 * it works out to be the maximum accel value in g's * 2^15.
156 return sensors.accel.sensitivity;
236 sensors.accel.sample_rate_us = sample_rate_us;
237 sensors.accel.sample_rate_ms = sample_rate_us / 1000;
238 if (sensors.accel.bandwidth == 0) {
239 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us);
295 *ts = sensors.accel.timestamp;
297 if (sensors.accel
716 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 Dand_constructor.c80 // 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 Ddatalogger_outputs.c109 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 Dmain.c385 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 Dhal_outputs.c81 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 Ddata_builder.h20 /** 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 Ddata_builder.c99 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 Ddata_builder.h20 /** 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 Dhal_outputs.c129 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, &timestamp1);
159 accel[
297 long accel[3]; local
550 long accel[3]; local
[all...]
H A Ddata_builder.c100 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 DMPLSensor.cpp48 #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 Dmpu.h282 * @accel: Accel platform data
296 struct ext_slave_platform_data accel; member in struct:mpu_platform_data

Completed in 519 milliseconds