adc_converter_config_t Struct Reference

Defines the converter configuration. More...

#include <platform/drivers/inc/adc_driver.h>

Data Fields

adc_clk_divide_t clockDivide
 
uint8_t sampleTime
 
adc_resolution_t resolution
 
adc_input_clock_t inputClock
 
adc_trigger_t trigger
 
adc_pretrigger_sel_t pretriggerSel
 
adc_trigger_sel_t triggerSel
 
bool dmaEnable
 
adc_voltage_reference_t voltageRef
 
bool continuousConvEnable
 
bool supplyMonitoringEnable
 

Detailed Description

Defines the converter configuration.

This structure is used to configure the ADC converter

Implements : adc_converter_config_t_Class

Definition at line 252 of file adc_driver.h.

Field Documentation

adc_clk_divide_t clockDivide

Divider of the input clock for the ADC

Definition at line 254 of file adc_driver.h.

bool continuousConvEnable

Enable Continuous conversions

Definition at line 263 of file adc_driver.h.

bool dmaEnable

Enable DMA for the ADC

Definition at line 261 of file adc_driver.h.

adc_input_clock_t inputClock

Input clock source

Definition at line 257 of file adc_driver.h.

adc_pretrigger_sel_t pretriggerSel

Pretrigger source selected from Trigger Latching and Arbitration Unit - affects only the first 4 control channels

Definition at line 259 of file adc_driver.h.

adc_resolution_t resolution

ADC resolution (8,10,12 bit)

Definition at line 256 of file adc_driver.h.

uint8_t sampleTime

Sample time in AD Clocks

Definition at line 255 of file adc_driver.h.

bool supplyMonitoringEnable

Only available for ADC 0. Enable internal supply monitoring - enables measurement of ADC_INPUTCHAN_SUPPLY_ sources.

Definition at line 264 of file adc_driver.h.

adc_trigger_t trigger

ADC trigger type (software, hardware) - affects only the first control channel

Definition at line 258 of file adc_driver.h.

adc_trigger_sel_t triggerSel

Trigger source selected from Trigger Latching and Arbitration Unit

Definition at line 260 of file adc_driver.h.

Voltage reference used

Definition at line 262 of file adc_driver.h.


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