Enumerations | |
enum | EnabledFlag { Disabled = 0x00, Enabled = 0x20 } |
enum | SleepMode { Idle = 0x00, PowerDown = 0x10, Standby = 0x20 | 0x10 } |
Functions | |
void | SetUp (SleepMode sleepMode, EnabledFlag enabled) |
void | FallAsleep () |
void | Enable () |
void | Disable () |
uint8_t | IsEnabled () |
uint8_t | GetSleepMode () |
void | SetSleepMode (SleepMode sleepMode) |
void AVRCpp::Sleeping::Disable | ( | ) | [inline] |
void AVRCpp::Sleeping::Enable | ( | ) | [inline] |
void AVRCpp::Sleeping::FallAsleep | ( | ) | [inline] |
uint8_t AVRCpp::Sleeping::GetSleepMode | ( | ) | [inline] |
Definition at line 154 of file Sleeping.h.
00155 { 00156 return ( SelectBits<_MCUCR>(_SM1) 00157 | SelectBits<_MCUCSR>(_SM2) 00158 | SelectBits<_EMCUCR>(_SM0) ); 00159 00160 } // GetSleepMode
uint8_t AVRCpp::Sleeping::IsEnabled | ( | ) | [inline] |
void AVRCpp::Sleeping::SetSleepMode | ( | SleepMode | sleepMode | ) | [inline] |
Definition at line 162 of file Sleeping.h.
00163 { 00164 ChangeBits<_MCUCR>(_SM1, sleepMode); 00165 ChangeBits<_MCUCSR>(_SM2, sleepMode); 00166 ChangeBits<_EMCUCR>(_SM0, sleepMode); 00167 00168 } // SetSleepMode
void AVRCpp::Sleeping::SetUp | ( | SleepMode | sleepMode, | |
EnabledFlag | enabled | |||
) | [inline] |
MTÜ TTÜ Robotiklubi |