Lines Matching refs:activity
76 * The internal activity level must be stable for ACTTHD samples before
77 * ACTIVITY is updated. The ACTIVITY variable contains the current activity
94 /* Status register - activity field */
190 u8 activity;
204 static enum iio_modifier mma9553_activity_to_mod(enum activity_level activity)
206 switch (activity) {
313 u8 *activity, u16 *stepcnt)
327 *activity = mma9553_get_bits(buf[0], MMA9553_MASK_STATUS_ACTIVITY);
346 * If both step detector and activity are enabled, use the MRGFL bit.
361 /* Save initial values for activity and stepcnt */
363 ret = mma9553_read_activity_stepcnt(data, &data->activity,
418 * Clear the activity debounce counter when the activity level changes,
419 * so that the confidence level applies for any activity level.
444 * parameters (speed, distance, calories, activity)
469 u8 activity;
497 activity =
502 * so we will always have 100% for current activity and
505 if (chan->channel2 == mma9553_activity_to_mod(activity))
1009 u8 activity;
1014 ret = mma9553_read_activity_stepcnt(data, &activity, &stepcnt);
1022 data->activity),
1025 mma9553_activity_to_mod(activity),
1039 if (activity != data->activity) {
1040 data->activity = activity;
1041 /* ev_activity can be NULL if activity == ACTIVITY_UNKNOWN */