Defines | Functions | Variables
adc.h File Reference

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_2   1
#define VOLTAGE_1   2
#define VOLTAGE_2   4

Functions

void ADC0Handler (void) __irq
unsigned int ADC0Read (unsigned char channelNum)
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]

Define Documentation

#define ADC_ADINT   0x00010000

Definition at line 21 of file adc.h.

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

Definition at line 28 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 27 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_2   1

Definition at line 25 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 ADC0Handler ( void  )
unsigned int ADC0Read ( unsigned char  channelNum)

Definition at line 267 of file adc.c.

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

Definition at line 318 of file adc.c.

unsigned int ADCInit ( unsigned int  ADC_Clk)

Definition at line 219 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.



ccny_asctec_firmware
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:32