Home
last modified time | relevance | path

Searched refs:thresh (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/sensor/wsen/wsen_tids_2521020222501/
Dwsen_tids_2521020222501_trigger.c175 int32_t thresh = thresh_value->val1 * 1000 + thresh_value->val2 / 1000; in tids_2521020222501_threshold_upper_set() local
177 if (TIDS_setTempHighLimit(&data->sensor_interface, thresh) != WE_SUCCESS) { in tids_2521020222501_threshold_upper_set()
182 data->sensor_high_threshold = thresh; in tids_2521020222501_threshold_upper_set()
191 int32_t thresh; in tids_2521020222501_threshold_upper_get() local
193 if (TIDS_getTempHighLimit(&data->sensor_interface, &thresh) != WE_SUCCESS) { in tids_2521020222501_threshold_upper_get()
198 thresh_value->val1 = thresh / 1000; in tids_2521020222501_threshold_upper_get()
199 thresh_value->val2 = (thresh % 1000) * (1000000 / 1000); in tids_2521020222501_threshold_upper_get()
208 int32_t thresh = thresh_value->val1 * 1000 + thresh_value->val2 / 1000; in tids_2521020222501_threshold_lower_set() local
210 if (TIDS_setTempLowLimit(&data->sensor_interface, thresh) != WE_SUCCESS) { in tids_2521020222501_threshold_lower_set()
215 data->sensor_low_threshold = thresh; in tids_2521020222501_threshold_lower_set()
[all …]
/Zephyr-latest/drivers/adc/
Dadc_ads1x1x.c259 uint16_t thresh; in ads1x1x_enable_conv_ready_signal() local
263 rc = ads1x1x_read_reg(dev, ADS1X1X_REG_HI_THRESH, &thresh); in ads1x1x_enable_conv_ready_signal()
267 thresh |= ADS1X1X_THRES_POLARITY_ACTIVE; in ads1x1x_enable_conv_ready_signal()
268 rc = ads1x1x_write_reg(dev, ADS1X1X_REG_HI_THRESH, thresh); in ads1x1x_enable_conv_ready_signal()
274 rc = ads1x1x_read_reg(dev, ADS1X1X_REG_LO_THRESH, &thresh); in ads1x1x_enable_conv_ready_signal()
278 thresh &= ~ADS1X1X_THRES_POLARITY_ACTIVE; in ads1x1x_enable_conv_ready_signal()
279 rc = ads1x1x_write_reg(dev, ADS1X1X_REG_LO_THRESH, thresh); in ads1x1x_enable_conv_ready_signal()
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372.c38 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()
604 threshold.thresh = value; in adxl372_attr_set_thresh()
892 .activity_th.thresh = CONFIG_ADXL372_ACTIVITY_THRESHOLD / 100, \
897 .inactivity_th.thresh = CONFIG_ADXL372_INACTIVITY_THRESHOLD / 100, \
Dadxl372.h284 uint16_t thresh; member