#include <DiverseIO.h>
Public Member Functions | |
FlagsBuffer () | |
FlagsBuffer (T initFlags) | |
void | Set (T value) |
T | Get () |
void | SetBits (T flagsSet) |
void | ClearBits (T flagsCleared) |
void | ToggleBits (T flagsToggled) |
T | SelectBits (T flagsSelected) |
bool | IsBitsSet (T flagsTested) |
template<class Register> | |
void | FromRegister () |
template<class Register> | |
void | IntoRegister () |
void | ChangeBits (T selection, T value) |
Protected Attributes | |
T | flags |
Definition at line 430 of file DiverseIO.h.
AVRCpp::FlagsBuffer< T >::FlagsBuffer | ( | ) | [inline] |
AVRCpp::FlagsBuffer< T >::FlagsBuffer | ( | T | initFlags | ) | [inline] |
void AVRCpp::FlagsBuffer< T >::Set | ( | T | value | ) | [inline] |
T AVRCpp::FlagsBuffer< T >::Get | ( | ) | [inline] |
void AVRCpp::FlagsBuffer< T >::SetBits | ( | T | flagsSet | ) | [inline] |
void AVRCpp::FlagsBuffer< T >::ClearBits | ( | T | flagsCleared | ) | [inline] |
void AVRCpp::FlagsBuffer< T >::ToggleBits | ( | T | flagsToggled | ) | [inline] |
T AVRCpp::FlagsBuffer< T >::SelectBits | ( | T | flagsSelected | ) | [inline] |
bool AVRCpp::FlagsBuffer< T >::IsBitsSet | ( | T | flagsTested | ) | [inline] |
Definition at line 447 of file DiverseIO.h.
00447 { return SelectBits(flagsTested) != 0 ? true : false; }
void AVRCpp::FlagsBuffer< T >::FromRegister | ( | ) | [inline] |
void AVRCpp::FlagsBuffer< T >::IntoRegister | ( | ) | [inline] |
void AVRCpp::FlagsBuffer< T >::ChangeBits | ( | T | selection, | |
T | value | |||
) | [inline] |
Definition at line 451 of file DiverseIO.h.
00452 { 00453 T tmp = flags & ~selection; 00454 00455 value &= selection; 00456 flags = tmp + value; 00457 00458 } // ChangeBits
T AVRCpp::FlagsBuffer< T >::flags [protected] |
Definition at line 434 of file DiverseIO.h.
MTÜ TTÜ Robotiklubi |