Lines Matching +full:6 +full:th

30  * @param th          - Structure holding the activity threshold information:
37 const struct adxl367_activity_threshold *th) in adxl367_setup_activity_detection() argument
46 FIELD_PREP(ADXL367_ACT_INACT_CTL_ACT_EN_MSK, th->enable) | in adxl367_setup_activity_detection()
48 th->referenced)); in adxl367_setup_activity_detection()
54 FIELD_PREP(ADXL367_THRESH_H_MSK, th->value >> 6)); in adxl367_setup_activity_detection()
60 FIELD_PREP(ADXL367_THRESH_L_MSK, th->value & 0x3F)); in adxl367_setup_activity_detection()
67 * @param th - Structure holding the inactivity threshold information:
75 const struct adxl367_activity_threshold *th) in adxl367_setup_inactivity_detection() argument
84 th->enable) | in adxl367_setup_inactivity_detection()
86 th->referenced)); in adxl367_setup_inactivity_detection()
92 FIELD_PREP(ADXL367_THRESH_H_MSK, th->value >> 6)); in adxl367_setup_inactivity_detection()
98 FIELD_PREP(ADXL367_THRESH_L_MSK, th->value & 0x3F)); in adxl367_setup_inactivity_detection()
378 x_axis_1 = ((int16_t)read_val[0] << 6) + (read_val[1] >> 2); in adxl367_self_test()
400 x_axis_2 = ((int16_t)read_val[0] << 6) + (read_val[1] >> 2); in adxl367_self_test()
459 * is selected, a value of 2 will represent 6 entries.
704 uint8_t xyz_values[6] = { 0 }; in adxl367_get_accel_data()
719 ret = data->hw_tf->read_reg_multiple(dev, ADXL367_X_DATA_H, xyz_values, 6); in adxl367_get_accel_data()
725 accel_data->x = ((int16_t)xyz_values[0] << 6) + (xyz_values[1] >> 2); in adxl367_get_accel_data()
726 accel_data->y = ((int16_t)xyz_values[2] << 6) + (xyz_values[3] >> 2); in adxl367_get_accel_data()
727 accel_data->z = ((int16_t)xyz_values[4] << 6) + (xyz_values[5] >> 2); in adxl367_get_accel_data()
777 *raw_temp = ((int16_t)temp[0] << 6) + (temp[1] >> 2); in adxl367_get_temp_data()