Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:MPLSensor

18 //see also the EXTRA_VERBOSE define in the MPLSensor.h header file
39 #include "MPLSensor.h"
122 MPLSensor *MPLSensor::gMPLSensor = NULL;
127 if(MPLSensor::gMPLSensor) {
128 MPLSensor::gMPLSensor->cbProcData();
132 void setCallbackObject(MPLSensor* gbpt)
134 MPLSensor::gMPLSensor = gbpt;
137 MPLSensor* getCallbackObject() {
138 return MPLSensor::gMPLSensor;
150 * MPLSensor class implementation
153 MPLSensor::MPLSensor(CompassSensor *compass, int (*m_pt2AccelCalLoadFunc)(long *))
190 "HAL:MPLSensor constructor : numSensors = %d", numSensors);
301 mHandlers[RotationVector] = &MPLSensor::rvHandler;
302 mHandlers[LinearAccel] = &MPLSensor::laHandler;
303 mHandlers[Gravity] = &MPLSensor::gravHandler;
304 mHandlers[Gyro] = &MPLSensor::gyroHandler;
305 mHandlers[RawGyro] = &MPLSensor::rawGyroHandler;
306 mHandlers[Accelerometer] = &MPLSensor::accelHandler;
307 mHandlers[MagneticField] = &MPLSensor::compassHandler;
308 mHandlers[Orientation] = &MPLSensor::orienHandler;
369 void MPLSensor::enable_iio_sysfs()
416 int MPLSensor::inv_constructor_init()
436 int MPLSensor::inv_constructor_default_enable()
527 void MPLSensor::inv_set_device_properties()
559 void MPLSensor::loadDMP()
599 void MPLSensor::inv_get_sensors_orientation()
662 MPLSensor::~MPLSensor()
704 int MPLSensor::setGyroInitialState()
732 int MPLSensor::setAccelInitialState()
754 int MPLSensor::onPower(int en)
782 int MPLSensor::onDMP(int en)
825 int MPLSensor::checkLPQuaternion(void)
832 int MPLSensor::enableLPQuaternion(int en)
852 int MPLSensor::enableQuaternionData(int en)
880 int MPLSensor::enableTap(int en)
887 int MPLSensor::enableFlick(int en)
894 int MPLSensor::enablePedometer(int en)
901 int MPLSensor::masterEnable(int en)
907 int MPLSensor::enableGyro(int en)
929 int MPLSensor::enableAccel(int en)
951 int MPLSensor::enableCompass(int en)
963 void MPLSensor::computeLocalSensorMask(int enabled_sensors)
1008 int MPLSensor::enableOneSensor(int en, const char *name, int (MPLSensor::*enabler)(int)) {
1013 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed) {
1051 res = enableOneSensor(sensors & INV_THREE_AXIS_GYRO, "gyro", &MPLSensor::enableGyro);
1058 res = enableOneSensor(sensors & INV_THREE_AXIS_ACCEL, "accel", &MPLSensor::enableAccel);
1066 res = enableOneSensor(sensors & INV_THREE_AXIS_COMPASS, "compass", &MPLSensor::enableCompass);
1179 void MPLSensor::storeCalibration()
1191 void MPLSensor::cbProcData()
1199 int MPLSensor::gyroHandler(sensors_event_t* s)
1210 int MPLSensor::rawGyroHandler(sensors_event_t* s)
1221 int MPLSensor::accelHandler(sensors_event_t* s)
1235 int MPLSensor::compassHandler(sensors_event_t* s)
1247 int MPLSensor::rvHandler(sensors_event_t* s)
1259 int MPLSensor::laHandler(sensors_event_t* s)
1271 int MPLSensor::gravHandler(sensors_event_t* s)
1282 int MPLSensor::orienHandler(sensors_event_t* s)
1293 int MPLSensor::enable(int32_t handle, int en)
1431 int MPLSensor::setDelay(int32_t handle, int64_t ns)
1562 int MPLSensor::update_delay() {
1761 int MPLSensor::readAccelEvents(sensors_event_t* data, int count)
1814 int MPLSensor::executeOnData(sensors_event_t* data, int count)
1862 int MPLSensor::readEvents(sensors_event_t *data, int count) {
2035 int MPLSensor::readCompassEvents(sensors_event_t *data, int count)
2078 int MPLSensor::resetCompass()
2098 int MPLSensor::getFd() const
2101 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getFd returning %d", iio_fd);
2105 int MPLSensor::getAccelFd() const
2108 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getAccelFd returning %d", accel_fd);
2112 int MPLSensor::getCompassFd() const
2116 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getCompassFd returning %d", fd);
2120 int MPLSensor::turnOffAccelFifo() {
2134 int MPLSensor::enableDmpOrientation(int en)
2199 int MPLSensor::openDmpOrientFd()
2218 int MPLSensor::closeDmpOrientFd()
2226 int MPLSensor::dmpOrientHandler(int orient)
2234 int MPLSensor::readDmpOrientEvents(sensors_event_t* data, int count) {
2277 int MPLSensor::getDmpOrientFd()
2281 LOGV_IF(EXTRA_VERBOSE, "MPLSensor::getDmpOrientFd returning %d", dmp_orient_fd);
2286 int MPLSensor::checkDMPOrientation()
2292 int MPLSensor::getDmpRate(int64_t *wanted)
2306 int MPLSensor::getPollTime()
2312 bool MPLSensor::hasPendingEvents() const
2321 void MPLSensor::sleepEvent()
2326 void MPLSensor::wakeEvent()
2331 int MPLSensor::inv_float_to_q16(float *fdata, long *ldata)
2343 int MPLSensor::inv_long_to_q16(long *fdata, long *ldata)
2355 int MPLSensor::inv_float_to_round(float *fdata, long *ldata)
2367 int MPLSensor::inv_float_to_round2(float *fdata, short *ldata)
2379 int MPLSensor::inv_read_temperature(long long *data)
2412 int MPLSensor::inv_read_dmp_state(int fd)
2441 int MPLSensor::inv_read_sensor_bias(int fd, long *data)
2481 int MPLSensor::populateSensorList(struct sensor_t *list, int len)
2527 void MPLSensor::fillAccel(const char* accel, struct sensor_t *list)
2575 void MPLSensor::fillGyro(const char* gyro, struct sensor_t *list)
2617 void MPLSensor::fillRV(struct sensor_t *list)
2632 void MPLSensor::fillOrientation(struct sensor_t *list)
2646 void MPLSensor::fillGravity( struct sensor_t *list)
2660 void MPLSensor::fillLinearAccel(struct sensor_t *list)
2674 int MPLSensor::inv_init_sysfs_attributes(void)
2702 ALOGE("MPLSensor failed get sysfs path");
2707 ALOGE("MPLSensor failed get iio trigger path");
2777 bool MPLSensor::isMpu3050()
2782 int MPLSensor::isLowPowerQuatEnabled()
2791 int MPLSensor::isDmpDisplayOrientationOn()