Searched refs:res_mask (Results 1 – 2 of 2) sorted by relevance
85 uint16_t res_mask; member390 data->res_mask = BIT_MASK(sequence->resolution); in adc_emul_start_read()508 temp = (uint64_t)input_mV * data->res_mask / ref_v; in adc_emul_get_chan_value()512 if (temp > data->res_mask) { in adc_emul_get_chan_value()513 temp = data->res_mask; in adc_emul_get_chan_value()
802 uint8_t res_mask = 0; in set_resolution() local810 res_mask = STM32_ADC_GET_MASK(config->res_table[i]); in set_resolution()834 if (get_reg_value(dev, res_reg_addr, res_shift, res_mask) != res_reg_val) { in set_resolution()840 set_reg_value(dev, res_reg_addr, res_shift, res_mask, res_reg_val); in set_resolution()