/Zephyr-latest/drivers/adc/ |
D | adc_b91.c | 285 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()
|
D | adc_tla202x.c | 190 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()
|
D | adc_ads1x1x.c | 398 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 …]
|
D | adc_ads1119.c | 233 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()
|
D | adc_ads1112.c | 197 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()
|
D | adc_smartbond_sdadc.c | 69 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()
|
D | iadc_gecko.c | 28 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()
|
D | adc_smartbond_gpadc.c | 74 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()
|
D | adc_ads114s0x.c | 682 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 …]
|
D | adc_mcux_lpadc.c | 145 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()
|
D | adc_nrfx_saadc.c | 281 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()
|
D | adc_sam.c | 75 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()
|
D | adc_sam0.c | 222 inputctrl |= ADC_INPUTCTRL_MUXPOS(channel_cfg->input_positive); in adc_sam0_channel_setup() 238 switch (channel_cfg->input_positive) { in adc_sam0_channel_setup()
|
D | adc_nrfx_adc.c | 108 config->input = channel_cfg->input_positive; in adc_nrfx_channel_setup()
|
D | adc_shell.c | 255 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()
|
D | adc_ifx_cat1.c | 102 cyhal_gpio_t vplus = CYHAL_GET_GPIO(_ADCSAR_PORT, channel_cfg->input_positive); in ifx_cat1_adc_channel_setup()
|
D | adc_gecko.c | 236 channel_config->input_select = channel_cfg->input_positive; in adc_gecko_channel_setup()
|
D | adc_lmp90xxx.c | 405 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()
|
D | adc_mcux_gau_adc.c | 50 uint8_t source_channel = channel_cfg->input_positive; in mcux_gau_adc_channel_setup()
|
/Zephyr-latest/samples/boards/nordic/battery/src/ |
D | battery.c | 126 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/ |
D | light_sensor.c | 103 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gls_init()
|
D | temperature_sensor.c | 105 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gts_init()
|
/Zephyr-latest/tests/drivers/adc/adc_error_cases/src/ |
D | adc_error_cases.c | 23 .input_positive = 1,
|
/Zephyr-latest/include/zephyr/drivers/ |
D | adc.h | 141 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/ |
D | test_dac.c | 189 .input_positive = ADC_1ST_CHANNEL_INPUT,
|