Home
last modified time | relevance | path

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

12

/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.c30 IADC_PosInput_t input_positive; member
68 initSingleInput.posInput = channel_config->input_positive; in adc_gecko_set_config()
300 channel_config->input_positive = channel_cfg->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_ads1x4s0x.c694 dev->name, channel_cfg->input_positive, channel_cfg->input_negative); in ads1x4s0x_channel_setup()
695 if (channel_cfg->input_positive >= config->channels && in ads1x4s0x_channel_setup()
696 channel_cfg->input_positive != ADS1X4S0X_INPUT_SELECTION_AINCOM) { in ads1x4s0x_channel_setup()
698 channel_cfg->input_positive); in ads1x4s0x_channel_setup()
709 if (channel_cfg->input_positive == channel_cfg->input_negative) { in ads1x4s0x_channel_setup()
715 ADS1X4S0X_REGISTER_INPMUX_MUXP_SET(input_mux, channel_cfg->input_positive); in ads1x4s0x_channel_setup()
717 pin_selections[0] = channel_cfg->input_positive; in ads1x4s0x_channel_setup()
721 dev->name, channel_cfg->input_positive); in ads1x4s0x_channel_setup()
722 if (channel_cfg->input_positive >= config->channels && in ads1x4s0x_channel_setup()
723 channel_cfg->input_positive != ADS1X4S0X_INPUT_SELECTION_AINCOM) { in ads1x4s0x_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.c308 if ((channel_cfg->input_positive >= ARRAY_SIZE(saadc_psels)) || in adc_nrfx_channel_setup()
309 (channel_cfg->input_positive < NRF_SAADC_AIN0)) { in adc_nrfx_channel_setup()
328 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.c218 inputctrl |= ADC_INPUTCTRL_MUXPOS(channel_cfg->input_positive); in adc_sam0_channel_setup()
234 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.c257 adc->channel_config.input_positive = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_pos()
425 adc->channel_config.input_positive); in cmd_adc_print()
Dadc_ifx_cat1.c143 cyhal_gpio_t vplus = CYHAL_GET_GPIO(_ADC_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()
/Zephyr-latest/drivers/comparator/
Dcomparator_silabs_acmp.c30 int input_positive; member
99 ACMP_ChannelSet(config->base, config->input_negative, config->input_positive); in acmp_init()
244 .input_positive = DT_INST_PROP(inst, input_positive), \
/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/
Dtemperature_sensor.c105 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gts_init()
Dlight_sensor.c103 .input_positive = SAADC_CH_PSELP_PSELP_AnalogInput0 + cfg->adc_channel, in gls_init()
/Zephyr-latest/tests/drivers/adc/adc_error_cases/src/
Dadc_error_cases.c23 .input_positive = 1,
/Zephyr-latest/include/zephyr/drivers/
Dadc.h142 uint8_t input_positive; member
250 (.input_positive = DT_PROP_OR(node_id, zephyr_input_positive, 0), \
/Zephyr-latest/tests/drivers/dac/dac_loopback/src/
Dtest_dac.c202 .input_positive = ADC_1ST_CHANNEL_INPUT,

12