Lines Matching defs:MPLSensor
20 //see also the EXTRA_VERBOSE define in the MPLSensor.h header file
41 #include "MPLSensor.h"
172 MPLSensor *MPLSensor::gMPLSensor = NULL;
177 if(MPLSensor::gMPLSensor) {
178 MPLSensor::gMPLSensor->cbProcData();
182 void setCallbackObject(MPLSensor* gbpt)
184 MPLSensor::gMPLSensor = gbpt;
187 MPLSensor* getCallbackObject() {
188 return MPLSensor::gMPLSensor;
199 * MPLSensor class implementation
204 MPLSensor::MPLSensor(CompassSensor *compass, int (*m_pt2AccelCalLoadFunc)(long *))
262 "HAL:MPLSensor constructor : NumSensors = %d", NumSensors);
531 mHandlers[RotationVector] = &MPLSensor::rvHandler;
533 mHandlers[RotationVector] = &MPLSensor::grvHandler;
535 mHandlers[GameRotationVector] = &MPLSensor::grvHandler;
536 mHandlers[LinearAccel] = &MPLSensor::laHandler;
537 mHandlers[Gravity] = &MPLSensor::gravHandler;
539 mHandlers[Gyro] = &MPLSensor::gyroHandler;
541 mHandlers[Gyro] = &MPLSensor::rawGyroHandler;
543 mHandlers[RawGyro] = &MPLSensor::rawGyroHandler;
544 mHandlers[Accelerometer] = &MPLSensor::accelHandler;
546 mHandlers[MagneticField] = &MPLSensor::compassHandler;
548 mHandlers[MagneticField] = &MPLSensor::rawCompassHandler;
550 mHandlers[RawMagneticField] = &MPLSensor::rawCompassHandler;
551 mHandlers[Orientation] = &MPLSensor::orienHandler;
552 mHandlers[GeomagneticRotationVector] = &MPLSensor::gmHandler;
553 mHandlers[Pressure] = &MPLSensor::psHandler;
631 void MPLSensor::enable_iio_sysfs(void)
672 int MPLSensor::inv_constructor_init(void)
692 int MPLSensor::inv_constructor_default_enable(void)
794 void MPLSensor::inv_set_device_properties(void)
832 void MPLSensor::loadDMP(void)
870 void MPLSensor::inv_get_sensors_orientation(void)
933 MPLSensor::~MPLSensor()
1006 int MPLSensor::setGyroInitialState(void)
1034 int MPLSensor::setAccelInitialState()
1056 int MPLSensor::onDmp(int en)
1121 int MPLSensor::enablePedIndicator(int en)
1149 int MPLSensor::checkPedStandaloneEnabled(void)
1157 int MPLSensor::enablePedStandalone(int en)
1210 int MPLSensor:: enablePedStandaloneData(int en)
1267 int MPLSensor::checkPedQuatEnabled(void)
1274 int MPLSensor::enablePedQuaternion(int en)
1327 int MPLSensor::enablePedQuaternionData(int en)
1418 int MPLSensor::check6AxisQuatEnabled(void)
1425 int MPLSensor::enable6AxisQuaternion(int en)
1447 int MPLSensor::enable6AxisQuaternionData(int en)
1540 int MPLSensor::checkLPQuaternion(void)
1545 int MPLSensor::enableLPQuaternion(int en)
1565 int MPLSensor::enableQuaternionData(int en)
1588 int MPLSensor::enableDmpPedometer(int en, int interruptMode)
1744 int MPLSensor::masterEnable(int en)
1755 int MPLSensor::enableGyro(int en)
1777 int MPLSensor::enableAccel(int en)
1799 int MPLSensor::enableCompass(int en, int rawSensorRequested)
1818 int MPLSensor::enablePressure(int en)
1834 int MPLSensor::enableBatch(int64_t timeout)
1855 void MPLSensor::computeLocalSensorMask(int enabled_sensors)
1960 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed)
2169 int MPLSensor::computeBatchSensorMask(int enableSensors, int tempBatchSensor)
2209 int MPLSensor::setBatch(int en, int toggleEnable)
2342 void MPLSensor::storeCalibration(void)
2356 void MPLSensor::cbProcData(void)
2364 int MPLSensor::gyroHandler(sensors_event_t* s)
2375 int MPLSensor::rawGyroHandler(sensors_event_t* s)
2394 int MPLSensor::accelHandler(sensors_event_t* s)
2407 int MPLSensor::compassHandler(sensors_event_t* s)
2420 int MPLSensor::rawCompassHandler(sensors_event_t* s)
2449 int MPLSensor::rvHandler(sensors_event_t* s)
2468 int MPLSensor::grvHandler(sensors_event_t* s)
2488 int MPLSensor::laHandler(sensors_event_t* s)
2500 int MPLSensor::gravHandler(sensors_event_t* s)
2512 int MPLSensor::orienHandler(sensors_event_t* s)
2525 int MPLSensor::smHandler(sensors_event_t* s)
2552 int MPLSensor::scHandler(sensors_event_t* s)
2563 int MPLSensor::gmHandler(sensors_event_t* s)
2577 int MPLSensor::psHandler(sensors_event_t* s)
2596 int MPLSensor::enable(int32_t handle, int en)
2828 void MPLSensor::getHandle(int32_t handle, int &what, android::String8 &sname)
2904 int MPLSensor::setDelay(int32_t handle, int64_t ns)
3010 int MPLSensor::update_delay(void)
3378 int MPLSensor::readAccelEvents(sensors_event_t* data, int count)
3428 int MPLSensor::readEvents(sensors_event_t* data, int count)
3499 void MPLSensor::buildMpuEvent(void)
3882 void MPLSensor::buildCompassEvent(void)
3918 int MPLSensor::resetCompass(void)
3937 int MPLSensor::getFd(void) const
3940 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getFd returning %d", iio_fd);
3944 int MPLSensor::getAccelFd(void) const
3947 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getAccelFd returning %d", accel_fd);
3951 int MPLSensor::getCompassFd(void) const
3955 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getCompassFd returning %d", fd);
3959 int MPLSensor::turnOffAccelFifo(void)
3968 int MPLSensor::turnOffGyroFifo(void)
3977 int MPLSensor::enableDmpOrientation(int en)
4072 int MPLSensor::openDmpOrientFd(void)
4093 int MPLSensor::closeDmpOrientFd(void)
4101 int MPLSensor::dmpOrientHandler(int orient)
4108 int MPLSensor::readDmpOrientEvents(sensors_event_t* data, int count)
4153 int MPLSensor::getDmpOrientFd(void)
4158 "MPLSensor::getDmpOrientFd returning %d", dmp_orient_fd);
4163 int MPLSensor::checkDMPOrientation(void)
4169 int MPLSensor::getDmpRate(int64_t *wanted)
4204 int MPLSensor::getPollTime(void)
4210 int MPLSensor::getStepCountPollTime(void)
4222 bool MPLSensor
4248 bool MPLSensor::hasPendingEvents(void) const
4257 void MPLSensor::sleepEvent(void)
4262 void MPLSensor::wakeEvent(void)
4267 int MPLSensor::inv_float_to_q16(float *fdata, long *ldata)
4279 int MPLSensor::inv_long_to_q16(long *fdata, long *ldata)
4291 int MPLSensor::inv_float_to_round(float *fdata, long *ldata)
4303 int MPLSensor::inv_float_to_round2(float *fdata, short *ldata)
4315 int MPLSensor::inv_long_to_float(long *ldata, float *fdata)
4327 int MPLSensor::inv_read_temperature(long long *data)
4360 int MPLSensor::inv_read_dmp_state(int fd)
4389 int MPLSensor::inv_read_sensor_bias(int fd, long *data)
4429 int MPLSensor::populateSensorList(struct sensor_t *list, int len)
4486 void MPLSensor::fillAccel(const char* accel, struct sensor_t *list)
4551 void MPLSensor::fillGyro(const char* gyro, struct sensor_t *list)
4598 void MPLSensor::fillRV(struct sensor_t *list)
4614 void MPLSensor::fillGMRV(struct sensor_t *list)
4629 void MPLSensor::fillGRV(struct sensor_t *list)
4643 void MPLSensor::fillOrientation(struct sensor_t *list)
4657 void MPLSensor::fillGravity( struct sensor_t *list)
4671 void MPLSensor::fillLinearAccel(struct sensor_t *list)
4685 void MPLSensor::fillSignificantMotion(struct sensor_t *list)
4696 void MPLSensor::fillScreenOrientation(struct sensor_t *list)
4707 int MPLSensor::inv_init_sysfs_attributes(void)
4843 bool MPLSensor::isMpuNonDmp(void)
4851 int MPLSensor::isLowPowerQuatEnabled(void)
4860 int MPLSensor::isDmpDisplayOrientationOn(void)
4873 void MPLSensor::getCompassBias()
4903 void MPLSensor::getFactoryGyroBias()
4927 void MPLSensor::setFactoryGyroBias()
4971 void MPLSensor::getGyroBias()
5003 void MPLSensor::setGyroBias()
5048 void MPLSensor::getFactoryAccelBias()
5062 void MPLSensor::setFactoryAccelBias()
5091 void MPLSensor::getAccelBias()
5104 void MPLSensor::setAccelBias()
5144 int MPLSensor::isCompassDisabled(void)
5158 int MPLSensor::batch(int handle, int flags, int64_t period_ns, int64_t timeout)
5453 int MPLSensor::computeBatchDataOutput()
5493 int MPLSensor::getDmpPedometerFd()
5495 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getDmpPedometerFd returning %d",
5502 int MPLSensor::readDmpPedometerEvents(sensors_event_t* data, int count,
5570 int MPLSensor::getDmpSignificantMotionFd()
5573 "MPLSensor::getDmpSignificantMotionFd returning %d",
5578 int MPLSensor::readDmpSignificantMotionEvents(sensors_event_t* data, int count) {
5641 int MPLSensor::enableDmpSignificantMotion(int en)
5731 int MPLSensor::writeSignificantMotionParams(bool toggleEnable,
5767 int MPLSensor::setBatchDataRates()
5850 int MPLSensor::resetDataRates()
5941 void MPLSensor::initBias()
5987 void MPLSensor::sys_dump(bool fileMode)