Home
last modified time | relevance | path

Searched refs:input_positive (Results 1 – 25 of 25) sorted by relevance

/Zephyr-latest/drivers/adc/
Dadc_b91.c285 adc_input_pin_def_e input_positive; in adc_b91_channel_setup() local
378 input_positive = adc_b91_get_pin(channel_cfg->input_positive); in adc_b91_channel_setup()
380 if ((input_positive == (uint8_t)ADC_VBAT || input_negative == (uint8_t)ADC_VBAT) && in adc_b91_channel_setup()
398 adc_pin_config(ADC_GPIO_MODE, input_positive); in adc_b91_channel_setup()
400 adc_set_diff_input(channel_cfg->input_positive, channel_cfg->input_negative); in adc_b91_channel_setup()
401 } else if (input_positive == (uint8_t)ADC_VBAT) { in adc_b91_channel_setup()
406 adc_pin_config(ADC_GPIO_MODE, input_positive); in adc_b91_channel_setup()
407 adc_set_diff_input(channel_cfg->input_positive, GND); in adc_b91_channel_setup()
Dadc_tla202x.c190 if (cfg->input_positive == 0 && cfg->input_negative == 1) { in tla202x_channel_setup()
192 } else if (cfg->input_positive == 0 && cfg->input_negative == 3) { in tla202x_channel_setup()
194 } else if (cfg->input_positive == 1 && cfg->input_negative == 3) { in tla202x_channel_setup()
196 } else if (cfg->input_positive == 2 && cfg->input_negative == 3) { in tla202x_channel_setup()
203 if (cfg->input_positive == 0) { in tla202x_channel_setup()
205 } else if (cfg->input_positive == 1) { in tla202x_channel_setup()
207 } else if (cfg->input_positive == 2) { in tla202x_channel_setup()
209 } else if (cfg->input_positive == 3) { in tla202x_channel_setup()
Dadc_ads1x1x.c398 if (channel_cfg->input_positive == 0 && channel_cfg->input_negative == 1) { in ads1x1x_channel_setup()
400 } else if (channel_cfg->input_positive == 0 && in ads1x1x_channel_setup()
403 } else if (channel_cfg->input_positive == 1 && in ads1x1x_channel_setup()
406 } else if (channel_cfg->input_positive == 2 && in ads1x1x_channel_setup()
411 channel_cfg->input_positive, channel_cfg->input_negative); in ads1x1x_channel_setup()
415 if (channel_cfg->input_positive == 0) { in ads1x1x_channel_setup()
417 } else if (channel_cfg->input_positive == 1) { in ads1x1x_channel_setup()
419 } else if (channel_cfg->input_positive == 2) { in ads1x1x_channel_setup()
421 } else if (channel_cfg->input_positive == 3) { in ads1x1x_channel_setup()
425 channel_cfg->input_positive); in ads1x1x_channel_setup()
[all …]
Dadc_ads1119.c233 if (channel_cfg->input_positive == 0 && channel_cfg->input_negative == 1) { in ads1119_channel_setup()
235 } else if (channel_cfg->input_positive == 1 && channel_cfg->input_negative == 2) { in ads1119_channel_setup()
237 } else if (channel_cfg->input_positive == 2 && channel_cfg->input_negative == 3) { in ads1119_channel_setup()
243 if (channel_cfg->input_positive == 0) { in ads1119_channel_setup()
245 } else if (channel_cfg->input_positive == 1) { in ads1119_channel_setup()
247 } else if (channel_cfg->input_positive == 2) { in ads1119_channel_setup()
249 } else if (channel_cfg->input_positive == 3) { in ads1119_channel_setup()
Dadc_ads1112.c197 if (channel_cfg->input_positive == 0 && channel_cfg->input_negative == 1) { in ads1112_channel_setup()
199 } else if (channel_cfg->input_positive == 2 && channel_cfg->input_negative == 3) { in ads1112_channel_setup()
205 if (channel_cfg->input_positive == 0) { in ads1112_channel_setup()
207 } else if (channel_cfg->input_positive == 1) { in ads1112_channel_setup()
209 } else if (channel_cfg->input_positive == 2) { in ads1112_channel_setup()
Dadc_smartbond_sdadc.c69 if (channel_cfg->input_positive > SMARTBOND_SDADC_VBAT) { in sdadc_smartbond_channel_setup()
81 if ((channel_cfg->input_positive == SMARTBOND_SDADC_VBAT && in sdadc_smartbond_channel_setup()
83 (channel_cfg->input_positive != SMARTBOND_SDADC_VBAT && in sdadc_smartbond_channel_setup()
98 channel_cfg->input_positive << SDADC_SDADC_CTRL_REG_SDADC_INP_SEL_Pos; in sdadc_smartbond_channel_setup()
Diadc_gecko.c28 IADC_PosInput_t input_positive; member
63 initSingleInput.posInput = channel_config->input_positive; in adc_gecko_set_config()
369 channel_config->input_positive = channel_cfg->input_positive; in adc_gecko_channel_setup()
428 adc_gecko_gpio_busalloc_pos(channel_config->input_positive); in adc_gecko_channel_setup()
Dadc_smartbond_gpadc.c74 if (channel_cfg->input_positive != SMARTBOND_GPADC_P1_09 && in adc_smartbond_channel_setup()
75 channel_cfg->input_positive != SMARTBOND_GPADC_P0_08) { in adc_smartbond_channel_setup()
103 channel_cfg->input_positive << GPADC_GP_ADC_CTRL_REG_GP_ADC_SEL_Pos; in adc_smartbond_channel_setup()
Dadc_ads114s0x.c682 dev->name, channel_cfg->input_positive, channel_cfg->input_negative); in ads114s0x_channel_setup()
683 if (channel_cfg->input_positive >= ADS114S0X_INPUT_SELECTION_AINCOM) { in ads114s0x_channel_setup()
685 channel_cfg->input_positive); in ads114s0x_channel_setup()
695 if (channel_cfg->input_positive == channel_cfg->input_negative) { in ads114s0x_channel_setup()
701 ADS114S0X_REGISTER_INPMUX_MUXP_SET(input_mux, channel_cfg->input_positive); in ads114s0x_channel_setup()
703 pin_selections[0] = channel_cfg->input_positive; in ads114s0x_channel_setup()
707 dev->name, channel_cfg->input_positive); in ads114s0x_channel_setup()
708 if (channel_cfg->input_positive >= ADS114S0X_INPUT_SELECTION_AINCOM) { in ads114s0x_channel_setup()
710 channel_cfg->input_positive); in ads114s0x_channel_setup()
714 ADS114S0X_REGISTER_INPMUX_MUXP_SET(input_mux, channel_cfg->input_positive); in ads114s0x_channel_setup()
[all …]
Dadc_mcux_lpadc.c145 channel_side = 0x20 & channel_cfg->input_positive; in mcux_lpadc_channel_setup()
147 channel_num = ADC_CMDL_ADCH(channel_cfg->input_positive); in mcux_lpadc_channel_setup()
164 if ((ADC_CMDL_ADCH(channel_cfg->input_positive)) != in mcux_lpadc_channel_setup()
171 if (channel_cfg->input_positive & 0x20) { in mcux_lpadc_channel_setup()
Dadc_nrfx_saadc.c281 if ((channel_cfg->input_positive >= ARRAY_SIZE(saadc_psels)) || in adc_nrfx_channel_setup()
282 (channel_cfg->input_positive < NRF_SAADC_AIN0)) { in adc_nrfx_channel_setup()
301 m_data.positive_inputs[channel_id] = channel_cfg->input_positive; in adc_nrfx_channel_setup()
Dadc_sam.c75 if (channel_id != (channel_cfg->input_positive / 2U) in adc_sam_channel_setup()
81 if (channel_id != channel_cfg->input_positive) { in adc_sam_channel_setup()
Dadc_sam0.c222 inputctrl |= ADC_INPUTCTRL_MUXPOS(channel_cfg->input_positive); in adc_sam0_channel_setup()
238 switch (channel_cfg->input_positive) { in adc_sam0_channel_setup()
Dadc_nrfx_adc.c108 config->input = channel_cfg->input_positive; in adc_nrfx_channel_setup()
Dadc_shell.c255 adc->channel_config.input_positive = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_pos()
423 adc->channel_config.input_positive); in cmd_adc_print()
Dadc_ifx_cat1.c102 cyhal_gpio_t vplus = CYHAL_GET_GPIO(_ADCSAR_PORT, channel_cfg->input_positive); in ifx_cat1_adc_channel_setup()
Dadc_gecko.c236 channel_config->input_select = channel_cfg->input_positive; in adc_gecko_channel_setup()
Dadc_lmp90xxx.c405 if (!lmp90xxx_has_input(dev, channel_cfg->input_positive)) { in lmp90xxx_adc_channel_setup()
407 channel_cfg->input_positive); in lmp90xxx_adc_channel_setup()
410 chx_inputcn |= LMP90XXX_VINP(channel_cfg->input_positive); in lmp90xxx_adc_channel_setup()
Dadc_mcux_gau_adc.c50 uint8_t source_channel = channel_cfg->input_positive; in mcux_gau_adc_channel_setup()
/Zephyr-latest/samples/boards/nordic/battery/src/
Dbattery.c126 accp->input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 in divider_setup()
129 accp->input_positive = SAADC_CH_PSELP_PSELP_VDD; in divider_setup()
/Zephyr-latest/drivers/sensor/seeed/grove/
Dlight_sensor.c103 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gls_init()
Dtemperature_sensor.c105 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gts_init()
/Zephyr-latest/tests/drivers/adc/adc_error_cases/src/
Dadc_error_cases.c23 .input_positive = 1,
/Zephyr-latest/include/zephyr/drivers/
Dadc.h141 uint8_t input_positive; member
249 (.input_positive = DT_PROP_OR(node_id, zephyr_input_positive, 0), \
/Zephyr-latest/tests/drivers/dac/dac_loopback/src/
Dtest_dac.c189 .input_positive = ADC_1ST_CHANNEL_INPUT,