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 ADC_ADINT 0x00010000 |
Definition at line 21 of file original_hl_sdk_2.0/adc.h.
Definition at line 29 of file original_hl_sdk_2.0/adc.h.
#define ADC_DONE 0x80000000 |
Definition at line 19 of file original_hl_sdk_2.0/adc.h.
#define ADC_INDEX 4 |
Definition at line 17 of file original_hl_sdk_2.0/adc.h.
#define ADC_INTERRUPT_FLAG 0 /* 1 is interrupt driven, 0 is polling */ |
Definition at line 14 of file original_hl_sdk_2.0/adc.h.
#define ADC_NUM 8 /* for LPC2146/8 */ |
Definition at line 28 of file original_hl_sdk_2.0/adc.h.
#define ADC_OFFSET 0x10 |
Definition at line 16 of file original_hl_sdk_2.0/adc.h.
#define ADC_OVERRUN 0x40000000 |
Definition at line 20 of file original_hl_sdk_2.0/adc.h.
#define CURRENT_1 3 |
Definition at line 25 of file original_hl_sdk_2.0/adc.h.
#define CURRENT_2 1 |
Definition at line 26 of file original_hl_sdk_2.0/adc.h.
#define VOLTAGE_1 2 |
Definition at line 23 of file original_hl_sdk_2.0/adc.h.
#define VOLTAGE_2 4 |
Definition at line 24 of file original_hl_sdk_2.0/adc.h.
void ADC0getSamplingResults | ( | unsigned char | selectChannels, |
unsigned int * | channelValues | ||
) |
void ADC0Handler | ( | void | ) |
void ADC0triggerSampling | ( | unsigned char | selectChannels | ) |
void ADC1Handler | ( | void | ) |
volatile unsigned int ADC0IntDone |
volatile unsigned int ADC1IntDone |
unsigned int adcChannelValues[8] |