Searched refs:sample_value (Results 1 – 3 of 3) sorted by relevance
63 uint32_t ntc_get_ohm_of_thermistor(const struct ntc_config *cfg, int sample_value, in ntc_get_ohm_of_thermistor() argument68 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()
50 uint32_t ntc_get_ohm_of_thermistor(const struct ntc_config *cfg, int sample_value,
105 int16_t sample_value = m_sample_buffer[i]; in check_samples() local107 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()