Searched refs:sample_value (Results 1 – 3 of 3) sorted by relevance
| /Zephyr-latest/drivers/sensor/ntc_thermistor/ |
| D | ntc_thermistor_calc.c | 63 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()
|
| D | ntc_thermistor.h | 50 uint32_t ntc_get_ohm_of_thermistor(const struct ntc_config *cfg, int sample_value,
|
| /Zephyr-latest/tests/drivers/adc/adc_api/src/ |
| D | test_adc.c | 112 adc_data_size_t sample_value = m_sample_buffer[i]; in check_samples() local 115 TC_PRINT("0x%08x ", sample_value); in check_samples() 117 TC_PRINT("0x%04hx ", sample_value); in check_samples() 120 zassert_not_equal(INVALID_ADC_VALUE, sample_value, in check_samples() 123 zassert_equal(INVALID_ADC_VALUE, sample_value, in check_samples()
|