#include "ad.h"#include "types.h"Go to the source code of this file.
Defines | |
| #define | NUM 10 |
Functions | |
| void | ADC_int (void) |
| uint16_t | AD_read (unsigned char channel) |
| void | AD_Start (void) |
| void | AD_PowerDown (void) |
| void | AD_PowerUp (void) |
| void | AD_Set_Reg (unsigned char uchSel) |
Variables | |
| static unsigned int | inputs [7] |
| uint16_t AD_read | ( | unsigned char | channel | ) |
| void AD_Set_Reg | ( | unsigned char | uchSel | ) |
Definition at line 90 of file ad.c.
References AD_ADCR, AD_ADDR, AI0, AI1, AI2, AI3, AI4, AI5, AI6, AI7, PCB_PINSEL0, PCB_PINSEL2, and UARTWriteStr().
| void AD_Start | ( | void | ) |
Definition at line 74 of file ad.c.
References AD_ADCR, and UARTWriteStr().
Referenced by AD_read().
| void ADC_int | ( | void | ) |
Definition at line 39 of file ad.c.
References AD_ADDR, AD_OFFSET, disableIRQ(), enableIRQ(), iADchannel, inputs, itoa_16(), UARTWriteStr(), and VICVectAddr.
Referenced by ADC_interrupt().
unsigned int inputs[7] [static] |
1.4.7