OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MPLSensor
(Results
1 - 9
of
9
) sorted by null
/hardware/invensense/libsensors/
MPLSensor.cpp
35
#include "
MPLSensor
.h"
72
/* Base values for the sensor list, these need to be in the order defined in
MPLSensor
.h */
102
static
MPLSensor
* gMPLSensor = NULL;
125
void setCallbackObject(
MPLSensor
* gbpt)
143
MPLSensor
::
MPLSensor
() :
159
ALOGV_IF(EXTRA_VERBOSE, "
MPLSensor
constructor: numSensors = %d", numSensors);
215
//ALOGD("
MPLSensor
falling back to timerirq for accel data");
251
mHandlers[RotationVector] = &
MPLSensor
::rvHandler;
252
mHandlers[LinearAccel] = &
MPLSensor
::laHandler
[
all
...]
MPLSensor.h
32
/**
MPLSensor
implementation which fits into the HAL example for crespo provided
34
* * WARNING: there may only be one instance of
MPLSensor
, ever.
37
class
MPLSensor
: public SensorBase
39
typedef void (
MPLSensor
::*hfunc_t)(sensors_event_t*, uint32_t*, int);
42
MPLSensor
();
43
virtual ~
MPLSensor
();
138
void setCallbackObject(
MPLSensor
*);
Android.mk
31
LOCAL_SRC_FILES := SensorBase.cpp
MPLSensor
.cpp
/hardware/invensense/libsensors_iio/
MPLSensor.cpp
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
[
all
...]
MPLSensor.h
109
/**
MPLSensor
implementation which fits into the HAL example for crespo provided
111
* WARNING: there may only be one instance of
MPLSensor
, ever.
114
class
MPLSensor
: public SensorBase
116
typedef int (
MPLSensor
::*hfunc_t)(sensors_event_t*);
132
MPLSensor
(CompassSensor *, int (*m_pt2AccelCalLoadFunc)(long*) = 0);
133
virtual ~
MPLSensor
();
151
static
MPLSensor
* gMPLSensor;
194
int enableOneSensor(int en, const char *name, int (
MPLSensor
::*enabler)(int));
342
void setCallbackObject(
MPLSensor
*);
343
MPLSensor
*getCallbackObject();
[
all
...]
sensors_mpl.cpp
34
#include "
MPLSensor
.h"
40
#define LOCAL_SENSORS (
MPLSensor
::numSensors + 1)
42
#define LOCAL_SENSORS
MPLSensor
::numSensors
110
MPLSensor
*
mplSensor
= new
MPLSensor
(mCompassSensor);
115
*
MPLSensor
*
mplSensor
= new
MPLSensor
(mCompassSensor, AccelLoadConfig);
119
setCallbackObject(
mplSensor
);
[
all
...]
Android.mk
53
LOCAL_SRC_FILES +=
MPLSensor
.cpp
/device/samsung/manta/libsensors/
sensors.cpp
35
#include "
MPLSensor
.h"
63
static struct sensor_t sSensorList[LOCAL_SENSORS +
MPLSensor
::numSensors] = {
169
MPLSensor
*p_mplsen = new
MPLSensor
(p_compasssensor);
186
mPollFds[compass].fd = ((
MPLSensor
*)mSensors[mpl])->getCompassFd();
191
mPollFds[dmpOrient].fd = ((
MPLSensor
*)mSensors[mpl])->getDmpOrientFd();
266
((
MPLSensor
*) sensor)->readCompassEvents(NULL, count);
267
nb = ((
MPLSensor
*) mSensors[mpl])->executeOnData(data, count);
272
nb = ((
MPLSensor
*) mSensors[mpl])->executeOnData(data, count);
277
nb = ((
MPLSensor
*) mSensors[mpl])->readDmpOrientEvents(data, count)
[
all
...]
/device/samsung/tuna/libsensors/
sensors.cpp
38
#include "
MPLSensor
.h"
79
static struct sensor_t sSensorList[LOCAL_SENSORS +
MPLSensor
::numSensors] = {
179
MPLSensor
* p_mplsen = new
MPLSensor
();
192
mPollFds[mpl_accel].fd = ((
MPLSensor
*)mSensors[mpl])->getAccelFd();
197
mPollFds[mpl_timer].fd = ((
MPLSensor
*)mSensors[mpl])->getTimerFd();
228
mPollFds[mpl_power].fd = ((
MPLSensor
*)mSensors[mpl])->getPowerFd();
320
((
MPLSensor
*)mSensors[mpl])->handlePowerEvent();
Completed in 161 milliseconds