#include <DiverseIO.h>
Inherits AVRCpp::FlagsBuffer< uint8_t >.
Public Member Functions | |
FlagsBuffer8 () | |
FlagsBuffer8 (uint8_t initFlags) | |
void | Set (uint8_tvalue) |
uint8_t | Get () |
void | SetBits (uint8_tflagsSet) |
void | ClearBits (uint8_tflagsCleared) |
void | ToggleBits (uint8_tflagsToggled) |
uint8_t | SelectBits (uint8_tflagsSelected) |
bool | IsBitsSet (uint8_tflagsTested) |
void | FromRegister () |
void | IntoRegister () |
void | ChangeBits (uint8_tselection, uint8_tvalue) |
Protected Attributes | |
uint8_t | flags |
Definition at line 463 of file DiverseIO.h.
AVRCpp::FlagsBuffer8::FlagsBuffer8 | ( | ) | [inline] |
AVRCpp::FlagsBuffer8::FlagsBuffer8 | ( | uint8_t | initFlags | ) | [inline] |
void AVRCpp::FlagsBuffer< uint8_t >::Set | ( | uint8_t | value | ) | [inline, inherited] |
uint8_t AVRCpp::FlagsBuffer< uint8_t >::Get | ( | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint8_t >::SetBits | ( | uint8_t | flagsSet | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint8_t >::ClearBits | ( | uint8_t | flagsCleared | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint8_t >::ToggleBits | ( | uint8_t | flagsToggled | ) | [inline, inherited] |
uint8_t AVRCpp::FlagsBuffer< uint8_t >::SelectBits | ( | uint8_t | flagsSelected | ) | [inline, inherited] |
bool AVRCpp::FlagsBuffer< uint8_t >::IsBitsSet | ( | uint8_t | flagsTested | ) | [inline, inherited] |
Definition at line 447 of file DiverseIO.h.
00447 { return SelectBits(flagsTested) != 0 ? true : false; }
void AVRCpp::FlagsBuffer< uint8_t >::FromRegister | ( | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint8_t >::IntoRegister | ( | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint8_t >::ChangeBits | ( | uint8_t | selection, | |
uint8_t | value | |||
) | [inline, inherited] |
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
uint8_t AVRCpp::FlagsBuffer< uint8_t >::flags [protected, inherited] |
Definition at line 434 of file DiverseIO.h.
MTÜ TTÜ Robotiklubi |