Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:sensors

484     /* Event Handlers for HW and Virtual Sensors */
563 /* disable all sensors and features */
2074 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed)
2103 LOGV_IF(ENG_VERBOSE, "HAL:enableSensors - sensors: 0x%0x",
2104 (unsigned int)sensors);
2108 (sensors & INV_THREE_AXIS_GYRO? "enable": "disable"));
2109 res = enableGyro(!!(sensors & INV_THREE_AXIS_GYRO));
2122 (sensors & INV_THREE_AXIS_ACCEL? "enable": "disable"));
2123 res = enableAccel(!!(sensors & INV_THREE_AXIS_ACCEL));
2128 if (!(sensors & INV_THREE_AXIS_ACCEL) && !cal_stored) {
2136 (sensors & INV_THREE_AXIS_COMPASS? "enable": "disable"));
2137 res = enableCompass(!!(sensors & INV_THREE_AXIS_COMPASS), changed & (1 << RawMagneticField));
2151 (sensors & INV_ONE_AXIS_PRESSURE? "enable": "disable"));
2152 res = enablePressure(!!(sensors & INV_ONE_AXIS_PRESSURE));
2189 if(!(sensors & INV_THREE_AXIS_GYRO)) {
2192 if(!(sensors & INV_THREE_AXIS_ACCEL)) {
2204 /* check for invn hardware sensors change */
2213 if ((checkSmdSupport() == 1) || (checkPedometerSupport() == 1) || (sensors &
2220 LOGV_IF(ENG_VERBOSE, "SMD or Hardware sensors enabled");
2246 if (((sensors | mLocalSensorMask) & INV_THREE_AXIS_ACCEL) == 0) {
2253 } else { // all sensors idle
2254 LOGV_IF(ENG_VERBOSE, "HAL DEBUG: not SMD or Hardware sensors");
2270 !(sensors & (INV_THREE_AXIS_GYRO | INV_THREE_AXIS_ACCEL
2280 if (sensors &
2294 if(mFeatureActiveMask || sensors) {
2341 // if virtual sensors are on but not batched, turn off batch mode.
2407 /* step detector and hardware sensors enabled */
3162 // skip the 1st call for enalbing sensors called by ICS/JB sensor service
3314 /* search the minimum delay requested across all enabled sensors */
3551 unsigned long sensors = mLocalSensorMask & mMasterSensorMask;
3552 if (sensors &
3559 LOGV_IF(ENG_VERBOSE, "sensors=%lu", sensors);
3563 } else { // all sensors idle -> reduce power, unless DMP is needed
3633 // turn off sensors in data_builder
3676 // load up virtual sensors
3705 sensors = ((mLocalSensorMask & INV_THREE_AXIS_GYRO)? 1 : 0) +
3748 if (sensors == 0) {
3843 "HAL:input sensors= %d, lp_q_on= %d, 6axis_q_on= %d, "
3845 sensors, lp_quaternion_on, sixAxis_quaternion_on, ped_quaternion_on,
4753 /** fill in the sensor list based on which sensors are configured.
4754 * return the number of configured sensors.
4794 /* all sensors will be added to the list
4812 /* no 9-axis sensors, zero fill that part of the list */
5575 /* or any other sensors */
5612 LOGE("HAL:batch sensors %d not found", what);
5719 /* For these sensors, switch to different data output */
6138 int sensors = mEnabled;
6329 /* take care of case where only one type of gyro sensors or
6330 compass sensors is turned on */
6382 /* search the minimum delay requested across all enabled sensors */
6453 /* search the minimum delay requested across all enabled sensors */