avr/cpp/Sleeping.h File Reference

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

Go to the source code of this file.

Namespaces

namespace  AVRCpp
namespace  AVRCpp::Sleeping

Defines

#define __SLEEPING_NUMBER_OF_MODES__   5
#define __SLEEPING_REGISTER__   _MCUCR

Enumerations

enum  AVRCpp::Sleeping::EnabledFlag {
  AVRCpp::Sleeping::Disabled = 0x00,
  AVRCpp::Sleeping::Enabled = 0x80
}
enum  AVRCpp::Sleeping::SleepMode {
  AVRCpp::Sleeping::Idle = 0x00,
  AVRCpp::Sleeping::ADCNoiseReduction = 0x10,
  AVRCpp::Sleeping::PowerDown = 0x20,
  AVRCpp::Sleeping::PowerSave = 0x20 | 0x10,
  AVRCpp::Sleeping::Standby = 0x40 | 0x20
}

Functions

void AVRCpp::Sleeping::SetUp (SleepMode sleepMode, EnabledFlag enabled)
void AVRCpp::Sleeping::FallAsleep ()
void AVRCpp::Sleeping::Enable ()
void AVRCpp::Sleeping::Disable ()
uint8_t AVRCpp::Sleeping::IsEnabled ()
uint8_t AVRCpp::Sleeping::GetSleepMode ()
void AVRCpp::Sleeping::SetSleepMode (SleepMode sleepMode)


Define Documentation

#define __SLEEPING_NUMBER_OF_MODES__   5

Definition at line 44 of file Sleeping.h.

#define __SLEEPING_REGISTER__   _MCUCR

Definition at line 45 of file Sleeping.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