Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:sensors

93 // mask of virtual sensors that require gyro + accel + compass data
100 // mask of virtual sensors that require gyro + accel data (but no compass data)
104 // mask of virtual sensors that require mag + accel data (but no gyro data)
108 // mask of all virtual sensors
1042 /* TODO: Turn off and close all sensors */
2045 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed)
2071 LOGV_IF(ENG_VERBOSE, "HAL:enableSensors - sensors: 0x%0x",
2072 (unsigned int)sensors);
2076 (sensors & INV_THREE_AXIS_GYRO? "enable": "disable"));
2077 res = enableGyro(!!(sensors & INV_THREE_AXIS_GYRO));
2090 (sensors & INV_THREE_AXIS_ACCEL? "enable": "disable"));
2091 res = enableAccel(!!(sensors & INV_THREE_AXIS_ACCEL));
2096 if (!(sensors & INV_THREE_AXIS_ACCEL) && !cal_stored) {
2104 (sensors & INV_THREE_AXIS_COMPASS? "enable": "disable"));
2105 res = enableCompass(!!(sensors & INV_THREE_AXIS_COMPASS), changed & (1 << RawMagneticField));
2118 (sensors & INV_ONE_AXIS_PRESSURE? "enable": "disable"));
2119 res = enablePressure(!!(sensors & INV_ONE_AXIS_PRESSURE));
2155 if(!(sensors & INV_THREE_AXIS_GYRO)) {
2158 if(!(sensors & INV_THREE_AXIS_ACCEL)) {
2176 if ((checkSmdSupport() == 1) || (checkPedometerSupport() == 1) || (sensors &
2181 LOGV_IF(ENG_VERBOSE, "SMD or Hardware sensors enabled");
2208 if (((sensors | mLocalSensorMask) & INV_THREE_AXIS_ACCEL) == 0) {
2219 } else { // all sensors idle -> reduce power
2220 LOGV_IF(ENG_VERBOSE, "HAL DEBUG: not SMD or Hardware sensors");
2236 !(sensors & (INV_THREE_AXIS_GYRO | INV_THREE_AXIS_ACCEL
2246 if (sensors &
2302 // if composite sensors are on but not batched
2381 /* step detector and hardware sensors enabled */
3071 // skip the 1st call for enalbing sensors called by ICS/JB sensor service
3214 /* search the minimum delay requested across all enabled sensors */
3509 unsigned long sensors = mLocalSensorMask & mMasterSensorMask;
3510 if (sensors &
3515 LOGV_IF(ENG_VERBOSE, "sensors=%lu", sensors);
3519 } else { // all sensors idle -> reduce power, unless DMP is needed
3668 // load up virtual sensors
3696 sensors = ((mLocalSensorMask & INV_THREE_AXIS_GYRO)? 1 : 0) +
3708 nbyte= (BYTES_PER_SENSOR + 8) * sensors * 1;
3764 if (sensors == 0) {
3808 "HAL:input sensors= %d, lp_q_on= %d, 6axis_q_on= %d, "
3810 sensors, lp_quaternion_on, sixAxis_quaternion_on, ped_quaternion_on,
4689 /** fill in the sensor list based on which sensors are configured.
4690 * return the number of configured sensors.
4730 /* all sensors will be added to the list
4748 /* no 9-axis sensors, zero fill that part of the list */
5483 /* or any other sensors */
5514 LOGE("HAL:batch sensors %d not found", what);
5605 /* For these sensors, switch to different data output */
5910 /* sensors.h specified to return 1.0 */
5978 int sensors = mEnabled;
6008 if(mFeatureActiveMask == 0 || sensors == 0) {
6209 /* take care of case where only one type of gyro sensors or compass sensors is turned on */
6244 /* search the minimum delay requested across all enabled sensors */
6307 /* search the minimum delay requested across all enabled sensors */