/hardware/invensense/60xx/mlsdk/mllite/ |
H A D | accel.c | 20 * $Id: accel.c 4595 2011-01-25 01:43:03Z mcaramello $ 27 * Provides the interface to setup and handle an accel 32 * @file accel.c 54 #define MPL_LOG_TAG "MPL-accel" 79 * @brief Used to determine if an accel is configured and 81 * @return INV_SUCCESS if the accel is present. 87 if (NULL != mldl_cfg->accel && 88 NULL != mldl_cfg->accel->resume && 96 * @brief Query the accel slave address. 97 * @return The 7-bit accel slav [all...] |
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 | 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 | mldmp.c | 136 if (mldl_cfg->accel && mldl_cfg->accel->resume) 155 if (NULL != mldl_cfg->accel){
|
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 | ml.c | 62 #include "accel.h" 204 if (NULL != mldl_cfg->accel){ 205 accelCal[ii] = mldl_cfg->pdata->accel.orientation[ii]; 232 if (NULL != mldl_cfg->accel){ 233 RANGE_FIXEDPOINT_TO_FLOAT(mldl_cfg->accel->range, accelScale); 254 if (NULL != mldl_cfg->accel){ 281 int endian = mldl_cfg->accel->endian; 283 if (mldl_cfg->pdata->accel.bus != EXT_SLAVE_BUS_SECONDARY) { 786 if (ACCEL_ID_KXSD9 == mldl_cfg->accel->id) { 805 if (mldl_cfg->accel [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.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...] |
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,
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
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...] |
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.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,
|
/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.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...] |
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,
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
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 | 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 | main.c | 385 float accel[3]; local 386 inv_get_accel_float(accel); 387 PRINT_3ELM_ARRAY_FLOAT(10, 5, accel);
|
/hardware/invensense/60xx/mlsdk/ |
H A D | Android.mk | 58 $(MLLITE_DIR)/accel.c \ 84 ML_SOURCES += $(MLLITE_DIR)/accel/mantis.c
|
/hardware/invensense/60xx/libsensors/ |
H A D | MPLSensor.h | 129 void fillAccel(unsigned char accel, struct sensor_t *list);
|
/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
|
/hardware/invensense/60xx/mlsdk/mlutils/ |
H A D | mputest.c | 63 #include "accel.h" 111 #define DEF_N_ACCEL_SAMPLES (20) /* num of accel samples to 831 * by the MPU Self Test. Requires 3 elements to store accel X, Y, 840 * calculates the accel biases. 862 if (mputestPData->accel.get_slave_descr == NULL) { 867 if (mputestCfgPtr->accel == NULL) { 873 /* resume the accel */ 883 accel data to be retrieved by MPU */ 926 /* accel RMS - for now the threshold is only indicative */ 1101 * assessment. It simply calculates the gyro and accel biase [all...] |
/hardware/invensense/60xx/libsensors_iio/ |
H A D | MPLSensor.cpp | 53 # warning "Third party accel" 237 /* read accel FSR to calcuate accel scale later */ 246 LOGE("HAL:Error opening accel FSR"); 251 LOGE("HAL:Error reading accel FSR"); 339 LOGV_IF(PROCESS_VERBOSE, "HAL:Original accel offset, %ld, %ld, %ld\n", 343 LOGV_IF(PROCESS_VERBOSE, "HAL:Set accel offset, %ld, %ld, %ld\n", 542 /* accel setup */ 544 /* use for third party accel input subsystem driver 632 // get accel orientatio [all...] |
/hardware/invensense/6515/libsensors_iio/ |
H A D | MPLSensor.cpp | 57 #pragma message("HAL:build third party accel support") 189 /* read gyro FSR to calculate accel scale later */ 267 /* read accel FSR to calcuate accel scale later */ 276 LOGE("HAL:Error opening accel FSR"); 281 LOGE("HAL:Error reading accel FSR"); 290 /* read accel self test scale used to calculate factory cal bias later */ 301 LOGE("HAL:Error reading accel self test scale"); 313 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel x offset path: %s", mpu.in_accel_x_offset); 314 LOGV_IF(EXTRA_VERBOSE, "HAL:factory accel [all...] |
/hardware/invensense/65xx/libsensors_iio/ |
H A D | MPLSensor.cpp | 58 #pragma message("HAL:build third party accel support") 93 // mask of virtual sensors that require gyro + accel + compass data 100 // mask of virtual sensors that require gyro + accel data (but no compass data) 104 // mask of virtual sensors that require mag + accel data (but no gyro data) 313 /* read gyro FSR to calculate accel scale later */ 391 /* read accel FSR to calcuate accel scale later */ 400 LOGE("HAL:Error opening accel FSR"); 405 LOGE("HAL:Error reading accel FSR"); 414 /* read accel sel [all...] |