Home
last modified time | relevance | path

Searched refs:MPLSensor (Results 1 – 6 of 6) sorted by relevance

/hardware/invensense/65xx/libsensors_iio/
Dsensors_mpl.cpp48 #define LOCAL_SENSORS (MPLSensor::NumSensors + 1)
50 #define LOCAL_SENSORS MPLSensor::NumSensors
125 MPLSensor *mplSensor = new MPLSensor(mCompassSensor); in sensors_poll_context_t()
149 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor)->getDmpOrientFd(); in sensors_poll_context_t()
153 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor)->getDmpSignificantMotionFd(); in sensors_poll_context_t()
157 mPollFds[dmpPed].fd = ((MPLSensor*) mSensor)->getDmpPedometerFd(); in sensors_poll_context_t()
211 polltime = ((MPLSensor*) mSensor)->getStepCountPollTime(); in pollEvents()
221 ((MPLSensor*) mSensor)->buildMpuEvent(); in pollEvents()
224 ((MPLSensor*) mSensor)->buildCompassEvent(); in pollEvents()
227 nb = ((MPLSensor*)mSensor)-> in pollEvents()
[all …]
DMPLSensor.cpp172 MPLSensor *MPLSensor::gMPLSensor = NULL;
177 if(MPLSensor::gMPLSensor) { in procData_cb_wrapper()
178 MPLSensor::gMPLSensor->cbProcData(); in procData_cb_wrapper()
182 void setCallbackObject(MPLSensor* gbpt) in setCallbackObject()
184 MPLSensor::gMPLSensor = gbpt; in setCallbackObject()
187 MPLSensor* getCallbackObject() { in getCallbackObject()
188 return MPLSensor::gMPLSensor; in getCallbackObject()
204 MPLSensor::MPLSensor(CompassSensor *compass, int (*m_pt2AccelCalLoadFunc)(long *)) in MPLSensor() function in MPLSensor
574 mHandlers[RotationVector] = &MPLSensor::rvHandler; in MPLSensor()
576 mHandlers[RotationVector] = &MPLSensor::grvHandler; in MPLSensor()
[all …]
DMPLSensor.h173 class MPLSensor: public SensorBase
175 typedef int (MPLSensor::*hfunc_t)(sensors_event_t*);
198 MPLSensor(CompassSensor *, int (*m_pt2AccelCalLoadFunc)(long*) = 0);
199 virtual ~MPLSensor();
224 static MPLSensor* gMPLSensor;
576 void setCallbackObject(MPLSensor*);
577 MPLSensor *getCallbackObject();
/hardware/invensense/6515/libsensors_iio/
Dsensors_mpl.cpp150 MPLSensor *mplSensor = new MPLSensor(mCompassSensor); in sensors_poll_context_t()
177 mPollFds[dmpOrient].fd = ((MPLSensor*) mSensor)->getDmpOrientFd(); in sensors_poll_context_t()
181 mPollFds[dmpSign].fd = ((MPLSensor*) mSensor)->getDmpSignificantMotionFd(); in sensors_poll_context_t()
185 mPollFds[dmpPed].fd = ((MPLSensor*) mSensor)->getDmpPedometerFd(); in sensors_poll_context_t()
248 polltime = ((MPLSensor*) mSensor)->getStepCountPollTime(); in pollEvents()
255 if(((MPLSensor*) mSensor)->hasStepCountPendingEvents() == true) { in pollEvents()
256 nb = ((MPLSensor*) mSensor)->readDmpPedometerEvents( in pollEvents()
272 ((MPLSensor*) mSensor)->buildMpuEvent(); in pollEvents()
275 ((MPLSensor*) mSensor)->buildCompassEvent(); in pollEvents()
278 nb = ((MPLSensor*)mSensor)-> in pollEvents()
[all …]
DMPLSensor.cpp92 MPLSensor::MPLSensor(CompassSensor *compass, int (*m_pt2AccelCalLoadFunc)(long *)) in MPLSensor() function in MPLSensor
513 mHandlers[RotationVector] = &MPLSensor::rvHandler; in MPLSensor()
514 mHandlers[GameRotationVector] = &MPLSensor::grvHandler; in MPLSensor()
515 mHandlers[LinearAccel] = &MPLSensor::laHandler; in MPLSensor()
516 mHandlers[Gravity] = &MPLSensor::gravHandler; in MPLSensor()
517 mHandlers[Gyro] = &MPLSensor::gyroHandler; in MPLSensor()
518 mHandlers[RawGyro] = &MPLSensor::rawGyroHandler; in MPLSensor()
519 mHandlers[Accelerometer] = &MPLSensor::accelHandler; in MPLSensor()
520 mHandlers[MagneticField] = &MPLSensor::compassHandler; in MPLSensor()
521 mHandlers[RawMagneticField] = &MPLSensor::rawCompassHandler; in MPLSensor()
[all …]
DMPLSensor.h174 class MPLSensor: public SensorBase
176 typedef int (MPLSensor::*hfunc_t)(sensors_event_t*);
180 MPLSensor(CompassSensor *, int (*m_pt2AccelCalLoadFunc)(long*) = 0);
181 virtual ~MPLSensor();
591 void setCallbackObject(MPLSensor*);
592 MPLSensor *getCallbackObject();