XMC42_800WPSU_LLC
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
adc.h File Reference

ADC peripheral configuration header. More...

#include "DAVE.h"
#include <XMC4200.h>

Go to the source code of this file.

Macros

#define INDIVIDUAL_RESULT_REGISTERS   0U
 
#define TRIGGER_ENABLE   1
 
#define VADC_SR0_PRIORITY   1U
 
Channel synchronization definitions
#define SYNCHRO_CHANNEL   0
 
#define MASTER   0
 
#define SLAVE   1
 
#define SYNC_REQUIRED   1
 
Channel definitions

Channels used in the application

#define CH6   6
 
#define CH3   3
 
#define CH5   5
 
Result definitions

Result Registers used for the different channels in the application

#define RES7_CHx   7
 
#define RES3_CH3   3
 
#define RES15_CH5   15
 

Functions

void VADC_Init (void)
 Configuration and initialization of the ADC peripheral.
Global, group, channels and results are configured. Queue is configured and initialize. Pointer to the ADC measurements are defined. More...
 

Detailed Description

ADC peripheral configuration header.

Author
Meneses Herrera, David
Date
20.06.2017

Definition in file adc.h.

Macro Definition Documentation

#define CH3   3

Definition at line 75 of file adc.h.

Referenced by VADC_Init().

#define CH5   5

Definition at line 76 of file adc.h.

Referenced by VADC_Init().

#define CH6   6

Definition at line 74 of file adc.h.

Referenced by VADC_Init().

#define INDIVIDUAL_RESULT_REGISTERS   0U

Individual result registers are used in the queue

Definition at line 91 of file adc.h.

#define MASTER   0

Master group in the synchronization between G0 and G1

Definition at line 61 of file adc.h.

Referenced by VADC_Init().

#define RES15_CH5   15

Definition at line 87 of file adc.h.

Referenced by VADC_Init().

#define RES3_CH3   3

Definition at line 86 of file adc.h.

Referenced by VADC_Init().

#define RES7_CHx   7

Definition at line 85 of file adc.h.

Referenced by VADC_Init().

#define SLAVE   1

Slave group in the synchronization between G0 and G1

Definition at line 63 of file adc.h.

Referenced by VADC_Init().

#define SYNC_REQUIRED   1

Synchronization between G0 and G1 required

Definition at line 65 of file adc.h.

#define SYNCHRO_CHANNEL   0

Channel to be synchronized between G0 and G1

Definition at line 59 of file adc.h.

#define TRIGGER_ENABLE   1

Enable the external trigger of the VADC module

Definition at line 94 of file adc.h.

#define VADC_SR0_PRIORITY   1U

ADC interrupt priority

Definition at line 97 of file adc.h.