PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
stc_adc_config Struct Reference

ADC configuration. More...

#include <adc.h>

Collaboration diagram for stc_adc_config:

Data Fields

stc_ad_channel_list_t u32CannelSelect
 Selects channels for ADC (1 = active) More...
 
boolean_t bLsbAlignment
 TURE: Result is LSB aligned. More...
 
en_adc_scan_mode_t enScanMode
 Conversion Mode. See en_adc_scan_mode_t for details. More...
 
stc_ad_channel_list_t u32SamplingTimeSelect
 Selects channels for Sampling time 0 or 1 setting. More...
 
en_adc_sample_time_n_t enSamplingTimeN0
 Sampling Time N0 Time Setting Bits, see en_adc_sample_time_n_t for details. More...
 
uint8_t u8SamplingTime0
 Sampling Time 0 0...15. More...
 
en_adc_sample_time_n_t enSamplingTimeN1
 Sampling Time N1 Time Setting Bits, see en_adc_sample_time_n_t for details. More...
 
uint8_t u8SamplingTime1
 Sampling Time 1 0...15. More...
 
uint8_t u8SamplingMultiplier
 Multiplier of N, see Peripheral Manual for Details! More...
 
uint8_t u8EnableTime
 Enable Time. More...
 
boolean_t bScanTimerStartEnable
 TRUE: Triggers Scan Conversion by Timer. More...
 
en_adc_timer_select_t enScanConversionTimerTrigger
 See en_adc_timer_select_t for details. More...
 
uint8_t u8ScanFifoDepth
 Depth of the Scan Conversion FIFO 0...15. More...
 
boolean_t bPrioExtTrigEnable
 
boolean_t bPrioExtTrigStartEnable
 TRUE: Triggers Prioritys Conversion on falling edge of external signal. More...
 
boolean_t bPrioTimerStartEnable
 TRUE: Triggers Priority Conversion by Timer. More...
 
en_adc_timer_select_t enPrioConversionTimerTrigger
 See en_adc_timer_select_t for details. More...
 
uint8_t u8PrioFifoDepth
 Depth of the Priority Conversion FIFO 0...3. More...
 
uint8_t u8PrioLevel1AnalogChSel
 Priority Level 1 Analog Channel Selector Ch. 0...7. More...
 
uint8_t u8PrioLevel2AnalogChSel
 Priority Level 2 Analog Channel Selector Ch. 0...31. More...
 
boolean_t bComparisonEnable
 TRUE: Enables Comparison Mode. More...
 
uint16_t u16ComparisonValue
 ADC Comparison Value (CMPD) More...
 
boolean_t bCompareAllChannels
 TRUE: Compare all selected Channels, FALSE: Compare CCH-Channel. More...
 
uint8_t u8ComapreChannel
 CCH-Channel to be compared, if selected Ch. 0...31. More...
 
boolean_t bRangeComparisonEnable
 TRUE: Range Comparison is enabled. More...
 
uint16_t u16UpperLimitRangeValue
 Upper Limit Value for Range Comparison. More...
 
uint16_t u16LowerLimitRangeValue
 Lower limit Value for Range Comparison. More...
 
uint8_t u8RangeCountValue
 Range Count Value 1...7. More...
 
boolean_t bOutOfRange
 TRUE: Value out of Range, FALSE: Value within Range. More...
 
boolean_t bRangeCompareAllChannels
 TRUE: Range compare all selected Channels, FALSE: Compare WCCH-Channel. More...
 
uint8_t u8RangeComapreChannel
 WCCH-Channel to be Range compared, if selected Ch. 0...31. More...
 
boolean_t bCompIrqEqualGreater
 
boolean_t bScanConversionIrqEnable
 TRUE: Enable Scan Conversion Interrupt. More...
 
func_ptr_adc_parg32_t pfnPrioConversion
 Priority conversion callback. More...
 
boolean_t bPrioConversionIrqEnable
 TRUE: Enable Priority Conversion Interrupt. More...
 
boolean_t bConversionCompIrqEnable
 TRUE: Enable Conversion Comparison Interrupt. More...
 
boolean_t bFifoOverrunIrqEnable
 TRUE: Enable FIFO Overrun Interrupt. More...
 
boolean_t bRangeComparisonIrqEnable
 TRUE: Enable Range Comparison Interrupt. More...
 
func_ptr_adc_parg32_t pfnScanConversion
 Scanconversion callback. More...
 
func_ptr_t pfnErrorCallbackAdc
 Error during conversion. More...
 
func_ptr_t pfnPrioErrorCallbackAdc
 Priority FIFO overrun error callback pointer. More...
 
func_ptr_t pfnComparisonCallback
 Comparison callback pointer. More...
 
func_ptr_t pfnRangeCallback
 Range condition interrupt callback pointer. More...
 

Detailed Description

ADC configuration.

Definition at line 323 of file adc.h.

Field Documentation

boolean_t bCompareAllChannels

TRUE: Compare all selected Channels, FALSE: Compare CCH-Channel.

Definition at line 349 of file adc.h.

Referenced by Adc_Init().

boolean_t bComparisonEnable

TRUE: Enables Comparison Mode.

Definition at line 346 of file adc.h.

Referenced by Adc_Init().

boolean_t bCompIrqEqualGreater
           TRUE: Generate Interrupt, if CMPD most significant 10 bis >= current ADC value

FALSE: Generate Interrupt, if CMPD most significant 10 bis < current ADC value

Definition at line 361 of file adc.h.

Referenced by Adc_Init().

boolean_t bConversionCompIrqEnable

TRUE: Enable Conversion Comparison Interrupt.

Definition at line 366 of file adc.h.

Referenced by Adc_Init().

boolean_t bFifoOverrunIrqEnable

TRUE: Enable FIFO Overrun Interrupt.

Definition at line 367 of file adc.h.

Referenced by Adc_Init().

boolean_t bLsbAlignment

TURE: Result is LSB aligned.

Definition at line 326 of file adc.h.

Referenced by Adc_Init().

boolean_t bOutOfRange

TRUE: Value out of Range, FALSE: Value within Range.

Definition at line 355 of file adc.h.

Referenced by Adc_Init().

boolean_t bPrioConversionIrqEnable

TRUE: Enable Priority Conversion Interrupt.

Definition at line 365 of file adc.h.

Referenced by Adc_Init().

boolean_t bPrioExtTrigEnable
             TRUE: The external trigger analog inputs are selected with an external input.

FALSE: The external trigger analog inputs are selected with P1A[2:0].

Definition at line 338 of file adc.h.

Referenced by Adc_Init().

boolean_t bPrioExtTrigStartEnable

TRUE: Triggers Prioritys Conversion on falling edge of external signal.

Definition at line 340 of file adc.h.

Referenced by Adc_Init().

boolean_t bPrioTimerStartEnable

TRUE: Triggers Priority Conversion by Timer.

Definition at line 341 of file adc.h.

Referenced by Adc_Init().

boolean_t bRangeCompareAllChannels

TRUE: Range compare all selected Channels, FALSE: Compare WCCH-Channel.

Definition at line 356 of file adc.h.

Referenced by Adc_Init().

boolean_t bRangeComparisonEnable

TRUE: Range Comparison is enabled.

Definition at line 351 of file adc.h.

Referenced by Adc_Init().

boolean_t bRangeComparisonIrqEnable

TRUE: Enable Range Comparison Interrupt.

Definition at line 368 of file adc.h.

Referenced by Adc_Init().

boolean_t bScanConversionIrqEnable

TRUE: Enable Scan Conversion Interrupt.

Definition at line 363 of file adc.h.

Referenced by Adc_Init().

boolean_t bScanTimerStartEnable

TRUE: Triggers Scan Conversion by Timer.

Definition at line 335 of file adc.h.

Referenced by Adc_Init().

en_adc_timer_select_t enPrioConversionTimerTrigger

See en_adc_timer_select_t for details.

Definition at line 342 of file adc.h.

Referenced by Adc_Init().

en_adc_sample_time_n_t enSamplingTimeN0

Sampling Time N0 Time Setting Bits, see en_adc_sample_time_n_t for details.

Definition at line 329 of file adc.h.

Referenced by Adc_Init().

en_adc_sample_time_n_t enSamplingTimeN1

Sampling Time N1 Time Setting Bits, see en_adc_sample_time_n_t for details.

Definition at line 331 of file adc.h.

Referenced by Adc_Init().

en_adc_timer_select_t enScanConversionTimerTrigger

See en_adc_timer_select_t for details.

Definition at line 336 of file adc.h.

Referenced by Adc_Init().

en_adc_scan_mode_t enScanMode

Conversion Mode. See en_adc_scan_mode_t for details.

Definition at line 327 of file adc.h.

Referenced by Adc_Init().

func_ptr_t pfnComparisonCallback

Comparison callback pointer.

Definition at line 372 of file adc.h.

Referenced by Adc_Init().

func_ptr_t pfnErrorCallbackAdc

Error during conversion.

Definition at line 370 of file adc.h.

Referenced by Adc_Init().

func_ptr_adc_parg32_t pfnPrioConversion

Priority conversion callback.

Definition at line 364 of file adc.h.

Referenced by Adc_Init().

func_ptr_t pfnPrioErrorCallbackAdc

Priority FIFO overrun error callback pointer.

Definition at line 371 of file adc.h.

Referenced by Adc_Init().

func_ptr_t pfnRangeCallback

Range condition interrupt callback pointer.

Definition at line 373 of file adc.h.

Referenced by Adc_Init().

func_ptr_adc_parg32_t pfnScanConversion

Scanconversion callback.

Definition at line 369 of file adc.h.

Referenced by Adc_Init().

uint16_t u16ComparisonValue

ADC Comparison Value (CMPD)

Definition at line 347 of file adc.h.

Referenced by Adc_Init().

uint16_t u16LowerLimitRangeValue

Lower limit Value for Range Comparison.

Definition at line 353 of file adc.h.

Referenced by Adc_Init().

uint16_t u16UpperLimitRangeValue

Upper Limit Value for Range Comparison.

Definition at line 352 of file adc.h.

Referenced by Adc_Init().

stc_ad_channel_list_t u32CannelSelect

Selects channels for ADC (1 = active)

Definition at line 325 of file adc.h.

Referenced by Adc_Init().

stc_ad_channel_list_t u32SamplingTimeSelect

Selects channels for Sampling time 0 or 1 setting.

Definition at line 328 of file adc.h.

Referenced by Adc_Init().

uint8_t u8ComapreChannel

CCH-Channel to be compared, if selected Ch. 0...31.

Definition at line 350 of file adc.h.

Referenced by Adc_Init().

uint8_t u8EnableTime

Enable Time.

Definition at line 334 of file adc.h.

Referenced by Adc_Init().

uint8_t u8PrioFifoDepth

Depth of the Priority Conversion FIFO 0...3.

Definition at line 343 of file adc.h.

Referenced by Adc_Init().

uint8_t u8PrioLevel1AnalogChSel

Priority Level 1 Analog Channel Selector Ch. 0...7.

Definition at line 344 of file adc.h.

Referenced by Adc_Init().

uint8_t u8PrioLevel2AnalogChSel

Priority Level 2 Analog Channel Selector Ch. 0...31.

Definition at line 345 of file adc.h.

Referenced by Adc_Init().

uint8_t u8RangeComapreChannel

WCCH-Channel to be Range compared, if selected Ch. 0...31.

Definition at line 357 of file adc.h.

Referenced by Adc_Init().

uint8_t u8RangeCountValue

Range Count Value 1...7.

Definition at line 354 of file adc.h.

Referenced by Adc_Init().

uint8_t u8SamplingMultiplier

Multiplier of N, see Peripheral Manual for Details!

Definition at line 333 of file adc.h.

Referenced by Adc_Init().

uint8_t u8SamplingTime0

Sampling Time 0 0...15.

Definition at line 330 of file adc.h.

Referenced by Adc_Init().

uint8_t u8SamplingTime1

Sampling Time 1 0...15.

Definition at line 332 of file adc.h.

Referenced by Adc_Init().

uint8_t u8ScanFifoDepth

Depth of the Scan Conversion FIFO 0...15.

Definition at line 337 of file adc.h.

Referenced by Adc_Init().


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