Loading...
Searching...
No Matches
adc_conf_t Struct Reference

ADC device configuration. More...

Detailed Description

ADC device configuration.

CPU specific ADC configuration.

ADC channel configuration data.

Definition at line 379 of file periph_cpu.h.

#include <periph_cpu.h>

Data Fields

ADC_TypeDef * dev
 ADC device used.
 
CMU_Clock_TypeDef cmu
 the device CMU channel
 
gpio_t pin
 pin connected to the channel
 
uint8_t dev
 ADCx - 1 device used for the channel.
 
uint8_t chan
 CPU ADC channel connected to the pin.
 
ADC_Type * dev
 ADC module.
 
uint8_t avg
 Hardware averaging configuration.
 
uint8_t pinsel
 PINSEL# of the ADC pin

 
uint32_t pinsel_msk
 PINSEL Mask for ADC pin.
 

Field Documentation

◆ avg

uint8_t adc_conf_t::avg

Hardware averaging configuration.

Written as-is to ADCx_SC3 before conversion, use ADC_AVG_NONE and ADC_AVG_MAX as a shorthand notation in the board configuration

Definition at line 364 of file periph_cpu.h.

◆ chan

uint8_t adc_conf_t::chan

CPU ADC channel connected to the pin.

which ADC to use (0…7)

ADC channel.

Written as-is to ADCx_SC1x before conversion. This also decides single-ended or differential sampling, see CPU reference manual for ADCx_SC1x

Definition at line 290 of file periph_cpu.h.

◆ cmu

CMU_Clock_TypeDef adc_conf_t::cmu

the device CMU channel

Definition at line 381 of file periph_cpu.h.

◆ dev [1/3]

uint8_t adc_conf_t::dev

ADC device used.

ADCx - 1 device used for the channel.

Definition at line 380 of file periph_cpu.h.

◆ dev [2/3]

uint8_t adc_conf_t::dev

ADCx - 1 device used for the channel.

Definition at line 289 of file periph_cpu.h.

◆ dev [3/3]

ADC_Type* adc_conf_t::dev

ADC module.

Definition at line 345 of file periph_cpu.h.

◆ pin

gpio_t adc_conf_t::pin

pin connected to the channel

Pin connected to the channel.

pin to use

Use GPIO_UNDEF non-muxed ADC pins, e.g. ADC0_DP, or for internal channels, e.g. Bandgap

Definition at line 288 of file periph_cpu.h.

◆ pinsel

uint8_t adc_conf_t::pinsel

PINSEL# of the ADC pin

Definition at line 202 of file periph_cpu.h.

◆ pinsel_msk

uint32_t adc_conf_t::pinsel_msk

PINSEL Mask for ADC pin.

Definition at line 203 of file periph_cpu.h.


The documentation for this struct was generated from the following files: