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__   6
#define __SLEEPING_REGISTER__   _SMCR

Enumerations

enum  AVRCpp::Sleeping::EnabledFlag {
  AVRCpp::Sleeping::Disabled = 0x00,
  AVRCpp::Sleeping::Enabled = 0x1
}
enum  AVRCpp::Sleeping::SleepMode {
  AVRCpp::Sleeping::Idle = 0x00,
  AVRCpp::Sleeping::ADCNoiseReduction = 0x2,
  AVRCpp::Sleeping::PowerDown = 0x4,
  AVRCpp::Sleeping::PowerSave = 0x4 | 0x2,
  AVRCpp::Sleeping::Standby = 0x8 | 0x4,
  AVRCpp::Sleeping::ExtendedStandby = 0x8 | 0x4 | 0x2
}

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__   6

Definition at line 39 of file Sleeping.h.

#define __SLEEPING_REGISTER__   _SMCR

Definition at line 40 of file Sleeping.h.


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