Defines | Functions | Variables
adc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ADC_ADINT   0x00010000
#define ADC_CLK   1000000 /* set to 1Mhz */
#define ADC_DONE   0x80000000
#define ADC_INDEX   4
#define ADC_INTERRUPT_FLAG   0 /* 1 is interrupt driven, 0 is polling */
#define ADC_NUM   8 /* for LPC2146/8 */
#define ADC_OFFSET   0x10
#define ADC_OVERRUN   0x40000000
#define CURRENT_1   3
#define CURRENT_2   1
#define VOLTAGE_1   2
#define VOLTAGE_2   4

Functions

void ADC0getSamplingResults (unsigned char selectChannels, unsigned int *channelValues)
void ADC0Handler (void) __irq
unsigned int ADC0Read (unsigned char channelNum)
void ADC0triggerSampling (unsigned char selectChannels)
void ADC1Handler (void) __irq
unsigned int ADC1Read (unsigned char channelNum)
unsigned int ADCInit (unsigned int ADC_Clk)

Variables

volatile unsigned int ADC0IntDone
volatile unsigned int ADC0Value [ADC_NUM]
volatile unsigned int ADC1IntDone
volatile unsigned int ADC1Value [ADC_NUM]
unsigned int adcChannelValues [8]

Define Documentation

#define ADC_ADINT   0x00010000

Definition at line 21 of file adc.h.

#define ADC_CLK   1000000 /* set to 1Mhz */

Definition at line 29 of file adc.h.

#define ADC_DONE   0x80000000

Definition at line 19 of file adc.h.

#define ADC_INDEX   4

Definition at line 17 of file adc.h.

#define ADC_INTERRUPT_FLAG   0 /* 1 is interrupt driven, 0 is polling */

Definition at line 14 of file adc.h.

#define ADC_NUM   8 /* for LPC2146/8 */

Definition at line 28 of file adc.h.

#define ADC_OFFSET   0x10

Definition at line 16 of file adc.h.

#define ADC_OVERRUN   0x40000000

Definition at line 20 of file adc.h.

#define CURRENT_1   3

Definition at line 25 of file adc.h.

#define CURRENT_2   1

Definition at line 26 of file adc.h.

#define VOLTAGE_1   2

Definition at line 23 of file adc.h.

#define VOLTAGE_2   4

Definition at line 24 of file adc.h.


Function Documentation

void ADC0getSamplingResults ( unsigned char  selectChannels,
unsigned int *  channelValues 
)

Definition at line 379 of file adc.c.

void ADC0Handler ( void  )
unsigned int ADC0Read ( unsigned char  channelNum)

Definition at line 281 of file adc.c.

void ADC0triggerSampling ( unsigned char  selectChannels)

Definition at line 373 of file adc.c.

void ADC1Handler ( void  )
unsigned int ADC1Read ( unsigned char  channelNum)

Definition at line 332 of file adc.c.

unsigned int ADCInit ( unsigned int  ADC_Clk)

Definition at line 220 of file adc.c.


Variable Documentation

volatile unsigned int ADC0IntDone

Definition at line 18 of file adc.c.

volatile unsigned int ADC0Value[ADC_NUM]

Definition at line 17 of file adc.c.

volatile unsigned int ADC1IntDone

Definition at line 18 of file adc.c.

volatile unsigned int ADC1Value[ADC_NUM]

Definition at line 17 of file adc.c.

unsigned int adcChannelValues[8]

Definition at line 19 of file adc.c.



asctec_hl_firmware
Author(s): Markus Achtelik, Michael Achtelik, Stephan Weiss, Laurent Kneip
autogenerated on Tue Dec 17 2013 11:39:27