Home
last modified time | relevance | path

Searched refs:sample_value (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/sensor/ntc_thermistor/
Dntc_thermistor_calc.c63 uint32_t ntc_get_ohm_of_thermistor(const struct ntc_config *cfg, int sample_value, in ntc_get_ohm_of_thermistor() argument
68 if (sample_value <= 0) { in ntc_get_ohm_of_thermistor()
72 if (sample_value >= sample_value_max) { in ntc_get_ohm_of_thermistor()
77 ohm = cfg->pulldown_ohm * (sample_value_max - sample_value) / sample_value; in ntc_get_ohm_of_thermistor()
79 ohm = cfg->pullup_ohm * sample_value / (sample_value_max - sample_value); in ntc_get_ohm_of_thermistor()
Dntc_thermistor.h50 uint32_t ntc_get_ohm_of_thermistor(const struct ntc_config *cfg, int sample_value,
/Zephyr-latest/tests/drivers/adc/adc_api/src/
Dtest_adc.c105 int16_t sample_value = m_sample_buffer[i]; in check_samples() local
107 TC_PRINT("0x%04hx ", sample_value); in check_samples()
109 zassert_not_equal(INVALID_ADC_VALUE, sample_value, in check_samples()
112 zassert_equal(INVALID_ADC_VALUE, sample_value, in check_samples()