OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:pollFd
(Results
1 - 23
of
23
) sorted by null
/hardware/bsp/intel/peripheral/sensors/mraa/sensors/
GroveLight.cpp
40
Sensor * GroveLight::createSensor(int
pollFd
) {
41
return new GroveLight(
pollFd
, 0);
48
GroveLight::GroveLight(int
pollFd
, int pin) : upm::GroveLight(pin),
pollFd
(
pollFd
) {
62
return activateAcquisitionThread(
pollFd
, handle, enabled);
GroveTemperature.cpp
40
Sensor * GroveTemperature::createSensor(int
pollFd
) {
41
return new GroveTemperature(
pollFd
, 0);
48
GroveTemperature::GroveTemperature(int
pollFd
, int pin) : upm::GroveTemp(pin),
pollFd
(
pollFd
) {
62
return activateAcquisitionThread(
pollFd
, handle, enabled);
ProximityGPIO.cpp
61
Sensor * ProximityGPIO::createSensor(int
pollFd
) {
62
return new ProximityGPIO(
pollFd
, kPinGPIO);
69
ProximityGPIO::ProximityGPIO(int
pollFd
, int pin) : upm::GroveButton(pin),
pollFd
(
pollFd
) {
83
return activateAcquisitionThread(
pollFd
, handle, enabled);
GroveLight.hpp
35
* @param
pollFd
poll file descriptor
38
GroveLight(int
pollFd
, int pin);
62
static Sensor * createSensor(int
pollFd
);
66
int
pollFd
;
GroveTemperature.hpp
35
* @param
pollFd
poll file descriptor
38
GroveTemperature(int
pollFd
, int pin);
62
static Sensor * createSensor(int
pollFd
);
66
int
pollFd
;
LSM303dAccelerometer.hpp
35
* @param
pollFd
poll file descriptor
41
LSM303dAccelerometer(int
pollFd
,
68
static Sensor * createSensor(int
pollFd
);
71
int
pollFd
;
LSM303dOrientation.hpp
35
* @param
pollFd
poll file descriptor
39
LSM303dOrientation(int
pollFd
,
65
static Sensor * createSensor(int
pollFd
);
68
int
pollFd
;
LSM9DS0Accelerometer.hpp
35
* @param
pollFd
poll file descriptor
40
LSM9DS0Accelerometer(int
pollFd
, int bus, uint8_t gAddress, uint8_t xmAddress);
64
static Sensor * createSensor(int
pollFd
);
68
int
pollFd
;
MMA7660Accelerometer.hpp
42
* @param
pollFd
poll file descriptor
46
MMA7660Accelerometer(int
pollFd
, int bus, uint8_t address);
70
static Sensor * createSensor(int
pollFd
);
74
int
pollFd
;
MPU9150Accelerometer.hpp
35
* @param
pollFd
poll file descriptor
41
MPU9150Accelerometer(int
pollFd
, int bus=MPU9150_I2C_BUS,
67
static Sensor * createSensor(int
pollFd
);
70
int
pollFd
;
ProximityGPIO.hpp
35
* @param
pollFd
poll file descriptor
38
ProximityGPIO(int
pollFd
, int pin);
62
static Sensor * createSensor(int
pollFd
);
66
int
pollFd
;
LSM303dAccelerometer.cpp
41
Sensor * LSM303dAccelerometer::createSensor(int
pollFd
) {
42
return new LSM303dAccelerometer(
pollFd
, SensorUtils::getI2cBusNumber());
49
LSM303dAccelerometer::LSM303dAccelerometer(int
pollFd
,
51
: LSM303d(bus, address, scale),
pollFd
(
pollFd
), scale(scale) {
77
return activateAcquisitionThread(
pollFd
, handle, enabled);
LSM303dOrientation.cpp
41
Sensor * LSM303dOrientation::createSensor(int
pollFd
) {
42
return new LSM303dOrientation(
pollFd
, SensorUtils::getI2cBusNumber());
49
LSM303dOrientation::LSM303dOrientation(int
pollFd
,
51
: LSM303d(bus, address),
pollFd
(
pollFd
) {
69
return activateAcquisitionThread(
pollFd
, handle, enabled);
LSM9DS0Accelerometer.cpp
41
Sensor * LSM9DS0Accelerometer::createSensor(int
pollFd
) {
42
return new LSM9DS0Accelerometer(
pollFd
,
52
LSM9DS0Accelerometer::LSM9DS0Accelerometer(int
pollFd
,
54
: LSM9DS0 (bus, gAddress, xmAddress),
pollFd
(
pollFd
) {
75
return activateAcquisitionThread(
pollFd
, handle, enabled);
MMA7660Accelerometer.cpp
42
Sensor * MMA7660Accelerometer::createSensor(int
pollFd
) {
43
return new MMA7660Accelerometer(
pollFd
,
52
MMA7660Accelerometer::MMA7660Accelerometer(int
pollFd
, int bus, uint8_t address)
53
: MMA7660 (bus, address),
pollFd
(
pollFd
) {
82
return activateAcquisitionThread(
pollFd
, handle, enabled);
MPU9150Accelerometer.cpp
42
Sensor * MPU9150Accelerometer::createSensor(int
pollFd
) {
43
return new MPU9150Accelerometer(
pollFd
,
52
MPU9150Accelerometer::MPU9150Accelerometer(int
pollFd
, int bus, int address,
54
: MPU9150(bus, address, magAddress, enableAk8975),
pollFd
(
pollFd
) {
79
return activateAcquisitionThread(
pollFd
, handle, enabled);
/hardware/bsp/intel/peripheral/sensors/mraa/
AcquisitionThread.hpp
41
* @param
pollFd
poll file descriptor
44
AcquisitionThread(int
pollFd
, Sensor *sensor);
90
int
pollFd
;
AcquisitionThread.cpp
85
AcquisitionThread::AcquisitionThread(int
pollFd
, Sensor *sensor)
86
:
pollFd
(
pollFd
), sensor(sensor), initialized(false) {
133
/* add read pipe fd to
pollFd
*/
134
rc = epoll_ctl(
pollFd
, EPOLL_CTL_ADD, pipeFds[0] , &ev);
151
epoll_ctl(
pollFd
, EPOLL_CTL_DEL, pipeFds[0], nullptr);
207
epoll_ctl(
pollFd
, EPOLL_CTL_DEL, readPipeEnd, nullptr);
Sensor.hpp
125
* @param
pollFd
poll file descriptor
130
virtual int activateAcquisitionThread(int
pollFd
, int handle, int enabled);
Sensor.cpp
66
int Sensor::activateAcquisitionThread(int
pollFd
, int handle, int enabled) {
70
acquisitionThread = new AcquisitionThread(
pollFd
, this);
SensorsHAL.hpp
61
Sensor * (*sensorFactoryFunc)(int
pollFd
));
103
int
pollFd
;
SensorsHAL.cpp
31
pollFd
= epoll_create(MAX_DEVICES);
32
if (
pollFd
== -1) {
61
rc = close(
pollFd
);
133
sensors[handle] = sensorFactoryFuncs[handle](
pollFd
);
190
nfds = epoll_wait(
pollFd
, ev, MAX_DEVICES, -1);
/packages/apps/TV/usbtuner/jni/
DvbManager.cpp
299
struct
pollfd
pollFd
;
300
pollFd
.fd = mDvrFd;
301
pollFd
.events = POLLIN|POLLPRI|POLLERR;
302
pollFd
.revents = 0;
303
int poll_result = poll(&
pollFd
, NUM_POLLFDS, timeout_ms);
306
} else if (poll_result == -1 ||
pollFd
.revents & POLLERR) {
Completed in 113 milliseconds