Searched refs:thresh (Results 1 – 3 of 3) sorted by relevance
/Zephyr-Core-3.5.0/drivers/sensor/wsen_tids/ |
D | wsen_tids_trigger.c | 143 double thresh = (sensor_value_to_double(thresh_value) / THRESHOLD_TEMPERATURE2REGISTER_STEP) in tids_threshold_set() local 146 if (thresh < 0) { in tids_threshold_set() 147 thresh = 0; in tids_threshold_set() 148 } else if (thresh > 255) { in tids_threshold_set() 149 thresh = 255; in tids_threshold_set() 153 if (TIDS_setTempHighLimit(&data->sensor_interface, (uint8_t)thresh) != WE_SUCCESS) { in tids_threshold_set() 155 thresh_value->val1, abs(thresh_value->val2), (uint8_t)thresh); in tids_threshold_set() 159 if (TIDS_setTempLowLimit(&data->sensor_interface, (uint8_t)thresh) != WE_SUCCESS) { in tids_threshold_set() 161 thresh_value->val1, abs(thresh_value->val2), (uint8_t)thresh); in tids_threshold_set()
|
/Zephyr-Core-3.5.0/drivers/sensor/adxl372/ |
D | adxl372.c | 38 ret = data->hw_tf->write_reg(dev, axis_reg_h++, act->thresh >> 3); in adxl372_set_activity_threshold() 47 val = (act->thresh << 5) | (act->referenced << 1) | act->enable; in adxl372_set_activity_threshold() 50 val = (act->thresh << 5) | act->enable; in adxl372_set_activity_threshold() 553 threshold.thresh = value; in adxl372_attr_set_thresh() 832 .activity_th.thresh = CONFIG_ADXL372_ACTIVITY_THRESHOLD / 100, \ 837 .inactivity_th.thresh = CONFIG_ADXL372_INACTIVITY_THRESHOLD / 100, \
|
D | adxl372.h | 278 uint16_t thresh; member
|