/hardware/invensense/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"); 627 //ALOGV_IF(EXTRA_VERBOSE, "accel data: %f %f %f", s->acceleration.v[0], s->acceleration.v[1], s->acceleration.v[2]); 1143 /* first add gyro, accel and compass to the list */ 1145 /* fill in accel values */ 1149 ALOGE("Can not get accel id"); 1177 /* fill in Linear accel values */ 1188 void MPLSensor::fillAccel(unsigned char accel, struc argument [all...] |
H A D | MPLSensor.h | 130 void fillAccel(unsigned char accel, struct sensor_t *list);
|
/hardware/invensense/libsensors_iio/ |
H A D | MPLSensor.cpp | 52 # warning "Third party accel" 238 /* read accel FSR to calcuate accel scale later */ 247 LOGE("HAL:Error opening accel FSR"); 252 LOGE("HAL:Error reading accel FSR"); 554 /* accel setup */ 643 // get accel orientation 655 "HAL:accel mounting matrix: " 669 LOGE("HAL:Couldn't read accel mounting matrix"); 1118 LOGV_IF(PROCESS_VERBOSE, "HAL:enableSensors - enable accel"); [all...] |
H A D | MPLSensor.h | 230 int mAccelAccuracy; // value indicating the quality of the accel calibr.
327 void fillAccel(const char* accel, struct sensor_t *list);
|
/hardware/invensense/libsensors_iio/software/core/mllite/ |
H A D | data_builder.c | 49 /** Temperature when accel bias was stored. */ 108 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; 149 * it works out to be the maximum accel value in g's * 2^15. 153 return sensors.accel.sensitivity; 233 sensors.accel.sample_rate_us = sample_rate_us; 234 sensors.accel.sample_rate_ms = sample_rate_us / 1000; 235 if (sensors.accel.bandwidth == 0) { 236 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); 266 *sample_rate_ms = sensors.accel.sample_rate_ms; 303 sensors.accel 591 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,
|
H A D | hal_outputs.c | 61 long accel[3];
local 62 inv_get_accel_set(accel, accuracy, timestamp);
63 values[0] = accel[0] * ACCEL_CONVERSION;
64 values[1] = accel[1] * ACCEL_CONVERSION;
65 values[2] = accel[2] * ACCEL_CONVERSION;
75 * accel biases while at rest.
84 long gravity[3], accel[3];
local 86 inv_get_accel_set(accel, accuracy, timestamp);
88 accel[0] -= gravity[0] >> 14;
89 accel[ [all...] |
/hardware/invensense/mlsdk/ |
H A D | Android.mk | 58 $(MLLITE_DIR)/accel.c \ 84 ML_SOURCES += $(MLLITE_DIR)/accel/mantis.c
|
/hardware/invensense/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 | 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...] |
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 | 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...] |
H A D | mlarray.c | 2192 (long)mldl_cfg->pdata->accel.orientation[i * 3 + j];
|
H A D | mldl.c | 204 mldlCfg.accel = &gAccel;
|
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 | 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 = %02x\n", (int)mldl_cfg->accel->suspend); 88 MPL_LOGD("slave_accel->resume = %02x\n", (int)mldl_cfg->accel->resume); 89 MPL_LOGD("slave_accel->read = %02x\n", (int)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 | mldmp.c | 136 if (mldl_cfg->accel && mldl_cfg->accel->resume) 155 if (NULL != mldl_cfg->accel){
|
/hardware/invensense/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/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
|