avr/cpp/ADC.h File Reference

#include "IO.h"
#include "Assembler.h"

Go to the source code of this file.

Namespaces

namespace  AVRCpp
namespace  AVRCpp::AnalogToDigital

Classes

struct  AVRCpp::AnalogToDigital::ConversionCompleteInterrupt

Defines

#define __ADC_SIMPLE__   0x00
#define __ADC_DIFFERENTIAL__   0x01
#define __ADC_DIGITAL_INPUT__   0x02
#define __ADC_AUTO_TRIGGER__   0x04
#define __ADC_INTERNAL_REF1__   0x08
#define __ADC_HIGH_SPEED__   0x10
#define __ADC_PROPERTIES__   (__ADC_SIMPLE__)
#define ADC_ns   AnalogToDigital
#define ADC_struct   AnalogToDigital::ConversionCompleteInterrupt

Typedefs

typedef _ADC AVRCpp::AnalogToDigital::Result

Enumerations

enum  AVRCpp::AnalogToDigital::Reference {
  AVRCpp::AnalogToDigital::AREF = 0x00,
  AVRCpp::AnalogToDigital::AVCC = 0x40,
  AVRCpp::AnalogToDigital::InternalRef = 0x80 | 0x40
}
enum  AVRCpp::AnalogToDigital::Adjustment {
  AVRCpp::AnalogToDigital::AlignRight = 0x00,
  AVRCpp::AnalogToDigital::AlignLeft = 0x20
}
enum  AVRCpp::AnalogToDigital::InterruptEnableFlag {
  AVRCpp::AnalogToDigital::InterruptEnable = 0x8,
  AVRCpp::AnalogToDigital::InterruptDisable = 0x00
}
enum  AVRCpp::AnalogToDigital::EnableFlag {
  AVRCpp::AnalogToDigital::ADCEnable = 0x80,
  AVRCpp::AnalogToDigital::ADCDisable = 0x00
}
enum  AVRCpp::AnalogToDigital::ConversionStart {
  AVRCpp::AnalogToDigital::StartNow = 0x40,
  AVRCpp::AnalogToDigital::StartLater = 0x00
}
enum  AVRCpp::AnalogToDigital::FreeRunning {
  AVRCpp::AnalogToDigital::FreeRunMode = 0x20,
  AVRCpp::AnalogToDigital::FreeRunStopped = 0x00
}
enum  AVRCpp::AnalogToDigital::Prescaler {
  AVRCpp::AnalogToDigital::Div2 = 0x01,
  AVRCpp::AnalogToDigital::Div4 = 0x02,
  AVRCpp::AnalogToDigital::Div8 = 0x03,
  AVRCpp::AnalogToDigital::Div16 = 0x04,
  AVRCpp::AnalogToDigital::Div32 = 0x05,
  AVRCpp::AnalogToDigital::Div64 = 0x06,
  AVRCpp::AnalogToDigital::Div128 = 0x07
}
enum  AVRCpp::AnalogToDigital::AnalogChannel {
  AVRCpp::AnalogToDigital::ADC0 = 0x00,
  AVRCpp::AnalogToDigital::ADC1 = 0x01,
  AVRCpp::AnalogToDigital::ADC2 = 0x02,
  AVRCpp::AnalogToDigital::ADC3 = 0x03,
  AVRCpp::AnalogToDigital::ADC4 = 0x04,
  AVRCpp::AnalogToDigital::ADC5 = 0x05,
  AVRCpp::AnalogToDigital::ADC6 = 0x06,
  AVRCpp::AnalogToDigital::ADC7 = 0x07,
  AVRCpp::AnalogToDigital::Vbandgap = 0x0E,
  AVRCpp::AnalogToDigital::GND = 0x0F
}

Functions

bool AVRCpp::AnalogToDigital::IsConverting ()
void AVRCpp::AnalogToDigital::WaitWhileConverting ()
void AVRCpp::AnalogToDigital::EnsureChangeSafety ()
void AVRCpp::AnalogToDigital::SelectionSetUp (Reference reference, Adjustment adjustment, AnalogChannel channel)
void AVRCpp::AnalogToDigital::ControlSetUp (EnableFlag enableFlag, ConversionStart conversionStart, FreeRunning freeRunning, InterruptEnableFlag interruptEnableFlag, Prescaler prescaler)
void AVRCpp::AnalogToDigital::SetChannel (AnalogChannel channel)
void AVRCpp::AnalogToDigital::SelectPrescaler (Prescaler prescaler)
void AVRCpp::AnalogToDigital::Enable ()
void AVRCpp::AnalogToDigital::Disable ()
bool AVRCpp::AnalogToDigital::IsEnabled ()
void AVRCpp::AnalogToDigital::StartConversion ()
void AVRCpp::AnalogToDigital::EnableFreeRun ()
void AVRCpp::AnalogToDigital::DisableFreeRun ()
bool AVRCpp::AnalogToDigital::IsFreeRunEnabled ()
void AVRCpp::AnalogToDigital::StartFreeRun ()
void AVRCpp::AnalogToDigital::StopFreeRun ()


Define Documentation

#define __ADC_AUTO_TRIGGER__   0x04

Definition at line 34 of file ADC.h.

#define __ADC_DIFFERENTIAL__   0x01

Definition at line 32 of file ADC.h.

#define __ADC_DIGITAL_INPUT__   0x02

Definition at line 33 of file ADC.h.

#define __ADC_HIGH_SPEED__   0x10

Definition at line 36 of file ADC.h.

#define __ADC_INTERNAL_REF1__   0x08

Definition at line 35 of file ADC.h.

#define __ADC_PROPERTIES__   (__ADC_SIMPLE__)

Definition at line 41 of file ADC.h.

#define __ADC_SIMPLE__   0x00

Definition at line 31 of file ADC.h.

#define ADC_ns   AnalogToDigital

Definition at line 74 of file ADC.h.

#define ADC_struct   AnalogToDigital::ConversionCompleteInterrupt

Definition at line 75 of file ADC.h.


Generated on Sat Sep 15 23:41:29 2007 for AVR C++ Lib for ATmega8 by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi