/hardware/invensense/60xx/mlsdk/mllite/ |
mldl_cfg_mpu.c | 62 struct ext_slave_platform_data *compass = &mldl_cfg->pdata->compass; local 102 if (mldl_cfg->compass) { 103 MPL_LOGD("slave_compass->suspend = %02x\n", (int)mldl_cfg->compass->suspend); 104 MPL_LOGD("slave_compass->resume = %02x\n", (int)mldl_cfg->compass->resume); 105 MPL_LOGD("slave_compass->read = %02x\n", (int)mldl_cfg->compass->read); 106 MPL_LOGD("slave_compass->type = %02x\n", mldl_cfg->compass->type); 108 mldl_cfg->compass->read_reg); 110 mldl_cfg->compass->read_len); 111 MPL_LOGD("slave_compass->endian = %02x\n", mldl_cfg->compass->endian) [all...] |
mldl_cfg.h | 126 struct ext_slave_descr *compass; member in struct:mldl_cfg 190 mldl_cfg->compass, &mldl_cfg->pdata->compass, 241 mldl_cfg->compass, 242 &mldl_cfg->pdata->compass); 294 data, mldl_cfg->compass, 295 &mldl_cfg->pdata->compass);
|
compass.c | 20 * $Id: compass.c 5641 2011-06-14 02:10:02Z mcaramello $ 26 * @brief Motion Library - Compass Driver Layer. 27 * Provides the interface to setup and handle an compass 32 * @file compass.c 33 * @brief Compass setup and handling methods. 42 #include "compass.h" 56 #define MPL_LOG_TAG "MPL-compass" 213 * @brief Used to determine if a compass is 215 * @return INV_SUCCESS if the compass is present. 221 if (NULL != mldl_cfg->compass & [all...] |
mldmp.c | 41 #include "compass.h" 139 if (mldl_cfg->compass && mldl_cfg->compass->resume)
|
/hardware/invensense/60xx/libsensors_iio/software/core/mpl/ |
mag_disturb.h | 18 const long *compass, const long *gravity);
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
data_builder.c | 84 /** Gets last value of raw compass data. 85 * @param[out] raw Raw compass data in mounting frame in hardware units. Length 3. 89 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw)); 99 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; 101 if (sensors.compass.accuracy == 3) { 168 /** Compass sensitivity. 175 return sensors.compass.sensitivity; 274 /** Set Compass Sample rate in micro seconds. 286 sensors.compass.sample_rate_us = sample_rate_us [all...] |
hal_outputs.c | 34 filter for compass data.
36 compass data, since the former is unfiltered and the latter is filtered,
44 int accuracy_mag; /**< Compass accuracy */
289 long compass[3], quat_geomagnetic[4];
local 291 inv_get_compass_set(compass, accuracy, timestamp);
311 /** Compass data (uT) in body frame.
312 * @param[out] values Compass data in (uT), length 3. May be calibrated by having
339 /** Compass raw data (uT) in body frame.
340 * @param[out] values Compass data in (uT), length 3. May be calibrated by having
509 long compass[3], quat_geomagnetic[4]; local 525 long compass[3]; local [all...] |
ml_math_func.h | 100 float inv_compass_angle(const long *compass, const long *grav, 115 void inv_get_cross_product_vec(float *cgcross, float compass[3], float grav[3]);
|
ml_math_func.c | 30 * Does the cross product of compass by gravity, then converts that 34 * @param[in] compass Compass Vector (Body Frame), length 3 39 float inv_compass_angle(const long *compass, const long *grav, const float *quat) 44 // Compass cross Gravity 46 cgcross[1] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; 47 cgcross[2] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; 48 cgcross[3] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0] [all...] |
data_builder.h | 24 /** This is a new sample of compass data */ 128 struct inv_single_sensor_t compass; member in struct:inv_sensor_cal_t 172 /** compass Bias in chip frame, hardware units scaled by 2^16. */ 231 inv_error_t inv_build_compass(const long *compass, int status,
|
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/ |
data_builder.c | 43 /** Compass Bias in Chip Frame in Hardware units scaled by 2^16 */ 111 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; 113 if (sensors.compass.accuracy == 3) { 158 /** Compass sensitivity. 165 return sensors.compass.sensitivity; 242 /** Set Compass Sample rate in micro seconds. 254 sensors.compass.sample_rate_us = sample_rate_us; 255 sensors.compass.sample_rate_ms = sample_rate_us / 1000; 256 if (sensors.compass.bandwidth == 0) { 257 sensors.compass.bandwidth = (int)(1000000L / sample_rate_us) [all...] |
hal_outputs.c | 29 int accuracy_mag; /**< Compass accuracy */
226 /** Compass data (uT) in body frame.
227 * @param[out] values Compass data in (uT), length 3. May be calibrated by having
328 long compass[3];
local 337 hal_out.compass_status = sensor_cal->compass.status;
348 if ((sensor_cal->compass.status & INV_SENSOR_ON) && (sr > sensor_cal->compass.sample_rate_ms)) {
349 sr = sensor_cal->compass.sample_rate_ms;
360 if ((sensor_cal->accel.status & sensor_cal->compass.status & INV_SENSOR_ON) == 0) {
364 if ((sensor_cal->gyro.status & sensor_cal->accel.status & sensor_cal->compass.status & INV_SENSOR_ON) == 0) { [all...] |
ml_math_func.c | 30 * Does the cross product of compass by gravity, then converts that 34 * @param[in] compass Compass Vector (Body Frame), length 3 39 float inv_compass_angle(const long *compass, const long *grav, const float *quat) 44 // Compass cross Gravity 46 cgcross[1] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; 47 cgcross[2] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; 48 cgcross[3] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0] [all...] |
ml_math_func.h | 100 float inv_compass_angle(const long *compass, const long *grav, 115 void inv_get_cross_product_vec(float *cgcross, float compass[3], float grav[3]);
|
data_builder.h | 23 /** This is a new sample of compass data */ 108 struct inv_single_sensor_t compass; member in struct:inv_sensor_cal_t 177 inv_error_t inv_build_compass(const long *compass, int status,
|
/hardware/invensense/65xx/libsensors_iio/ |
CompassSensor.AKM.cpp | 30 // TODO: include corresponding header file for 3rd party compass sensor 47 0, "/sys/class/compass/akm8963/enable_mag", getTimestamp()); 48 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); 57 0, "/sys/class/compass/akm8963/enable_mag", getTimestamp()); 58 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); 100 // TODO: return if 3rd-party compass is enabled 154 const char *compass = COMPASS_NAME; local 156 if (compass) { 157 if (!strcmp(compass, "AKM8963")) { 164 if (!strcmp(compass, "AKM8975")) [all...] |
CompassSensor.IIO.primary.cpp | 39 #pragma message("HAL:build Invensense compass cal with AK8975 on primary bus") 85 LOGE("Error Instantiating Compass\n"); 101 LOGV_IF(SYSFS_VERBOSE, "HAL:compass name: %s", dev_full_name); 115 "HAL:compass mounting matrix: " 129 LOGE("HAL:Couldn't read compass mounting matrix"); 135 LOGE("HAL:Couldn't read compass overunderflow"); 147 const char* compass = dev_full_name; local 156 LOGE("HAL:could not open %s trigger name", compass); 189 find_type_by_name(compass, "iio:device")); 195 compass, iio_device_node, strerror(res), res) 419 const char *compass = dev_full_name; local 507 const char* compass = dev_full_name; local [all...] |
CompassSensor.IIO.9150.cpp | 39 #pragma message("HAL:build Invensense compass cal with YAS53x IIO on secondary bus") 44 #pragma message("HAL:build Invensense compass cal with AK8975 on primary bus") 50 #pragma message("HAL:build Invensense compass cal with compass IIO on secondary bus") 53 #pragma message("HAL:build third party compass cal HAL") 80 LOGE("Error Instantiating Compass\n"); 104 "HAL:compass mounting matrix: " 118 LOGE("HAL:Couldn't read compass mounting matrix"); 175 LOGE("HAL:Compass update delay error"); 191 /* use for Invensense compass calibration * 287 const char *compass = sensor_name; local [all...] |
sensors_mpl.cpp | 99 compass,
enumerator in enum:sensors_poll_context_t::__anon30978 143 mPollFds[compass].fd = mCompassSensor->getFd();
144 mPollFds[compass].events = POLLIN;
145 mPollFds[compass].revents = 0;
222 } else if (i == compass) {
|
/hardware/invensense/60xx/libsensors_iio/ |
CompassSensor.IIO.9150.cpp | 39 # warning "Invensense compass cal with YAS53x IIO on secondary bus" 43 # warning "Invensense compass cal with AK8975 on primary bus" 47 # warning "Invensense compass cal with compass IIO on secondary bus" 51 # warning "third party compass cal HAL" 69 LOGE("Error Instantiating Compass\n"); 93 "HAL:compass mounting matrix: " 107 LOGE("HAL:Couldn't read compass mounting matrix"); 147 LOGE_IF(res < 0, "HAL:enable compass failed"); 172 LOGE("HAL:Compass update delay error") [all...] |
sensors_mpl.cpp | 94 compass,
enumerator in enum:sensors_poll_context_t::__anon30962 130 mPollFds[compass].fd = mCompassSensor->getFd();
131 mPollFds[compass].events = POLLIN;
132 mPollFds[compass].revents = 0;
174 else if (i == compass) {
|
/device/samsung/manta/libsensors/ |
sensors.cpp | 123 compass, enumerator in enum:sensors_poll_context_t::__anon2405 185 mSensors[compass] = p_mplsen; 186 mPollFds[compass].fd = ((MPLSensor*)mSensors[mpl])->getCompassFd(); 187 mPollFds[compass].events = POLLIN; 188 mPollFds[compass].revents = 0; 264 if (i == compass) {
|
/hardware/invensense/65xx/libsensors_iio/software/core/mpl/ |
mag_disturb.h | 20 const long *compass, const long *gravity);
|
/device/lge/hammerhead/libsensors/ |
sensors.cpp | 124 compass, enumerator in enum:sensors_poll_context_t::__anon2018 194 mSensor[compass] = mplSensor; 195 mPollFds[compass].fd = mCompassSensor->getFd(); 196 mPollFds[compass].events = POLLIN; 197 mPollFds[compass].revents = 0; 293 } else if (i == compass) {
|
/hardware/invensense/60xx/mlsdk/ |
Android.mk | 51 # optionally apply the compass filter. this is set in 59 $(MLLITE_DIR)/compass.c \
|