#include <avr/io.h>
#include <avr/signal.h>
#include <avr/interrupt.h>
#include "global.h"
#include "a2d.h"
Go to the source code of this file.
Functions | |
| void | a2dInit (void) |
| Initializes the A/D converter. | |
| void | a2dOff (void) |
| Turn off A/D converter. | |
| void | a2dSetPrescaler (unsigned char prescale) |
| sets the division ratio of the A/D converter clock | |
| void | a2dSetReference (unsigned char ref) |
| configures which voltage reference the A/D converter uses | |
| void | a2dSetChannel (unsigned char ch) |
| sets the a2d input channel | |
| void | a2dStartConvert (void) |
| start a conversion on the current a2d input channel | |
| u08 | a2dIsComplete (void) |
| return TRUE if conversion is complete | |
| unsigned short | a2dConvert10bit (unsigned char ch) |
| starts a conversion on A/D channel# ch, | |
| unsigned char | a2dConvert8bit (unsigned char ch) |
| starts a conversion on A/D channel# ch, | |
| SIGNAL (SIG_ADC) | |
| interrupt handler for ADC complete interrupt | |
Variables | |
| volatile unsigned char | a2dCompleteFlag |
Definition in file a2d.c.
|
|
software flag used to indicate when the a2d conversion is complete Definition at line 29 of file a2d.c. Referenced by a2dConvert10bit(), a2dInit(), and SIGNAL(). |
1.3-rc2