/hardware/invensense/libsensors/ |
MPLSensor.h | 115 int accel_fd; member in class:MPLSensor
|
MPLSensor.cpp | 188 accel_fd = open("/dev/accelirq", O_RDWR); 189 if (accel_fd == -1) { 192 fcntl(accel_fd, F_SETFL, O_NONBLOCK); 193 //ioctl(accel_fd, SLAVEIRQ_SET_TIMEOUT, 0); 194 mIrqFds.add(ACCELIRQ_FD, accel_fd); 195 mPollFds[ACCELIRQ_FD].fd = accel_fd; 212 if ((accel_fd == -1) && (timer_fd != -1)) { 1038 //ALOGV("MPLSensor::getAccelFd returning %d", accel_fd); 1039 return accel_fd; [all...] |
/hardware/invensense/libsensors_iio/ |
MPLSensor.h | 237 int accel_fd;
member in class:MPLSensor
|
MPLSensor.cpp | 671 if( accel_fd > 0 ) 672 close(accel_fd ); 740 if (!ioctl(accel_fd, EVIOCGABS(EVENT_TYPE_ACCEL_X), &absinfo_x) && 741 !ioctl(accel_fd, EVIOCGABS(EVENT_TYPE_ACCEL_Y), &absinfo_y) && 742 !ioctl(accel_fd, EVIOCGABS(EVENT_TYPE_ACCEL_Z), &absinfo_z)) { [all...] |