Home
last modified time | relevance | path

Searched refs:pollFd (Results 1 – 22 of 22) sorted by relevance

/hardware/bsp/intel/peripheral/sensors/mraa/sensors/
DGroveLight.cpp40 Sensor * GroveLight::createSensor(int pollFd) { in createSensor() argument
41 return new GroveLight(pollFd, 0); in createSensor()
48 GroveLight::GroveLight(int pollFd, int pin) : upm::GroveLight(pin), pollFd(pollFd) { in GroveLight() argument
62 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DGroveTemperature.cpp40 Sensor * GroveTemperature::createSensor(int pollFd) { in createSensor() argument
41 return new GroveTemperature(pollFd, 0); in createSensor()
48 GroveTemperature::GroveTemperature(int pollFd, int pin) : upm::GroveTemp(pin), pollFd(pollFd) { in GroveTemperature() argument
62 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DProximityGPIO.cpp61 Sensor * ProximityGPIO::createSensor(int pollFd) { in createSensor() argument
62 return new ProximityGPIO(pollFd, kPinGPIO); in createSensor()
69 ProximityGPIO::ProximityGPIO(int pollFd, int pin) : upm::GroveButton(pin), pollFd(pollFd) { in ProximityGPIO() argument
83 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DLSM303dOrientation.cpp41 Sensor * LSM303dOrientation::createSensor(int pollFd) { in createSensor() argument
42 return new LSM303dOrientation(pollFd, SensorUtils::getI2cBusNumber()); in createSensor()
49 LSM303dOrientation::LSM303dOrientation(int pollFd, in LSM303dOrientation() argument
51 : LSM303d(bus, address), pollFd(pollFd) { in LSM303dOrientation()
69 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DLSM303dAccelerometer.cpp41 Sensor * LSM303dAccelerometer::createSensor(int pollFd) { in createSensor() argument
42 return new LSM303dAccelerometer(pollFd, SensorUtils::getI2cBusNumber()); in createSensor()
49 LSM303dAccelerometer::LSM303dAccelerometer(int pollFd, in LSM303dAccelerometer() argument
51 : LSM303d(bus, address, scale), pollFd(pollFd), scale(scale) { in LSM303dAccelerometer()
77 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DLSM9DS0Accelerometer.cpp41 Sensor * LSM9DS0Accelerometer::createSensor(int pollFd) { in createSensor() argument
42 return new LSM9DS0Accelerometer(pollFd, in createSensor()
52 LSM9DS0Accelerometer::LSM9DS0Accelerometer(int pollFd, in LSM9DS0Accelerometer() argument
54 : LSM9DS0 (bus, gAddress, xmAddress), pollFd(pollFd) { in LSM9DS0Accelerometer()
75 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DMPU9150Accelerometer.cpp42 Sensor * MPU9150Accelerometer::createSensor(int pollFd) { in createSensor() argument
43 return new MPU9150Accelerometer(pollFd, in createSensor()
52 MPU9150Accelerometer::MPU9150Accelerometer(int pollFd, int bus, int address, in MPU9150Accelerometer() argument
54 : MPU9150(bus, address, magAddress, enableAk8975), pollFd(pollFd) { in MPU9150Accelerometer()
79 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DMMA7660Accelerometer.cpp42 Sensor * MMA7660Accelerometer::createSensor(int pollFd) { in createSensor() argument
43 return new MMA7660Accelerometer(pollFd, in createSensor()
52 MMA7660Accelerometer::MMA7660Accelerometer(int pollFd, int bus, uint8_t address) in MMA7660Accelerometer() argument
53 : MMA7660 (bus, address), pollFd(pollFd) { in MMA7660Accelerometer()
82 return activateAcquisitionThread(pollFd, handle, enabled); in activate()
DGroveLight.hpp38 GroveLight(int pollFd, int pin);
62 static Sensor * createSensor(int pollFd);
66 int pollFd; member in GroveLight
DProximityGPIO.hpp38 ProximityGPIO(int pollFd, int pin);
62 static Sensor * createSensor(int pollFd);
66 int pollFd; member in ProximityGPIO
DGroveTemperature.hpp38 GroveTemperature(int pollFd, int pin);
62 static Sensor * createSensor(int pollFd);
66 int pollFd; member in GroveTemperature
DLSM303dOrientation.hpp39 LSM303dOrientation(int pollFd,
65 static Sensor * createSensor(int pollFd);
68 int pollFd; member in LSM303dOrientation
DLSM303dAccelerometer.hpp41 LSM303dAccelerometer(int pollFd,
68 static Sensor * createSensor(int pollFd);
71 int pollFd; member in LSM303dAccelerometer
DMMA7660Accelerometer.hpp46 MMA7660Accelerometer(int pollFd, int bus, uint8_t address);
70 static Sensor * createSensor(int pollFd);
74 int pollFd; member in MMA7660Accelerometer
DLSM9DS0Accelerometer.hpp40 LSM9DS0Accelerometer(int pollFd, int bus, uint8_t gAddress, uint8_t xmAddress);
64 static Sensor * createSensor(int pollFd);
68 int pollFd; member in LSM9DS0Accelerometer
DMPU9150Accelerometer.hpp41 MPU9150Accelerometer(int pollFd, int bus=MPU9150_I2C_BUS,
67 static Sensor * createSensor(int pollFd);
70 int pollFd; member in MPU9150Accelerometer
/hardware/bsp/intel/peripheral/sensors/mraa/
DAcquisitionThread.cpp85 AcquisitionThread::AcquisitionThread(int pollFd, Sensor *sensor) in AcquisitionThread() argument
86 : pollFd(pollFd), sensor(sensor), initialized(false) { in AcquisitionThread()
134 rc = epoll_ctl(pollFd, EPOLL_CTL_ADD, pipeFds[0] , &ev); in init()
151 epoll_ctl(pollFd, EPOLL_CTL_DEL, pipeFds[0], nullptr); in init()
207 epoll_ctl(pollFd, EPOLL_CTL_DEL, readPipeEnd, nullptr); in ~AcquisitionThread()
DAcquisitionThread.hpp44 AcquisitionThread(int pollFd, Sensor *sensor);
90 int pollFd; member in AcquisitionThread
DSensorsHAL.hpp61 Sensor * (*sensorFactoryFunc)(int pollFd));
103 int pollFd; member in SensorContext
DSensorsHAL.cpp31 pollFd = epoll_create(MAX_DEVICES); in SensorContext()
32 if (pollFd == -1) { in SensorContext()
61 rc = close(pollFd); in ~SensorContext()
133 sensors[handle] = sensorFactoryFuncs[handle](pollFd); in activate()
190 nfds = epoll_wait(pollFd, ev, MAX_DEVICES, -1); in pollEvents()
DSensor.cpp66 int Sensor::activateAcquisitionThread(int pollFd, int handle, int enabled) { in activateAcquisitionThread() argument
70 acquisitionThread = new AcquisitionThread(pollFd, this); in activateAcquisitionThread()
DSensor.hpp130 virtual int activateAcquisitionThread(int pollFd, int handle, int enabled);