#include <DiverseIO.h>
Inherits AVRCpp::FlagsBuffer< uint16_t >.
Public Member Functions | |
FlagsBuffer16 () | |
FlagsBuffer16 (uint16_t initFlags) | |
void | Set (uint16_tvalue) |
uint16_t | Get () |
void | SetBits (uint16_tflagsSet) |
void | ClearBits (uint16_tflagsCleared) |
void | ToggleBits (uint16_tflagsToggled) |
uint16_t | SelectBits (uint16_tflagsSelected) |
bool | IsBitsSet (uint16_tflagsTested) |
void | FromRegister () |
void | IntoRegister () |
void | ChangeBits (uint16_tselection, uint16_tvalue) |
Protected Attributes | |
uint16_t | flags |
Definition at line 473 of file DiverseIO.h.
AVRCpp::FlagsBuffer16::FlagsBuffer16 | ( | ) | [inline] |
AVRCpp::FlagsBuffer16::FlagsBuffer16 | ( | uint16_t | initFlags | ) | [inline] |
void AVRCpp::FlagsBuffer< uint16_t >::Set | ( | uint16_t | value | ) | [inline, inherited] |
uint16_t AVRCpp::FlagsBuffer< uint16_t >::Get | ( | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint16_t >::SetBits | ( | uint16_t | flagsSet | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint16_t >::ClearBits | ( | uint16_t | flagsCleared | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint16_t >::ToggleBits | ( | uint16_t | flagsToggled | ) | [inline, inherited] |
uint16_t AVRCpp::FlagsBuffer< uint16_t >::SelectBits | ( | uint16_t | flagsSelected | ) | [inline, inherited] |
bool AVRCpp::FlagsBuffer< uint16_t >::IsBitsSet | ( | uint16_t | flagsTested | ) | [inline, inherited] |
Definition at line 447 of file DiverseIO.h.
00447 { return SelectBits(flagsTested) != 0 ? true : false; }
void AVRCpp::FlagsBuffer< uint16_t >::FromRegister | ( | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint16_t >::IntoRegister | ( | ) | [inline, inherited] |
void AVRCpp::FlagsBuffer< uint16_t >::ChangeBits | ( | uint16_t | selection, | |
uint16_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
uint16_t AVRCpp::FlagsBuffer< uint16_t >::flags [protected, inherited] |
Definition at line 434 of file DiverseIO.h.
MTÜ TTÜ Robotiklubi |