A thread-safe class to create a DigitalOutInterface from 0 to 32 bits. More...
#include <TemplateDigitalOut.hpp>
Public Member Functions | |
TemplateDigitalOut () | |
The default constructor initialises the bit_status to zero. | |
unsigned int | getBitStatus () const |
The bit status is read-only. | |
void | switchOn (unsigned int bit) |
void | switchOff (unsigned int bit) |
void | setBit (unsigned int bit, bool value) |
void | setSequence (unsigned int start_bit, unsigned int stop_bit, unsigned int value) |
bool | checkBit (unsigned int n) const |
unsigned int | checkSequence (unsigned int start_bit, unsigned int stop_bit) const |
A thread-safe class to create a DigitalOutInterface from 0 to 32 bits.
The result of the methods is stored in a protected method getBitStatus, which can be read by a derived class. The derived class should also do bounds checking, if necessary and must modify the bit status through the accessor methods such that thread-safeness is guaranteed.
Definition at line 48 of file TemplateDigitalOut.hpp.
unsigned int getBitStatus | ( | ) | const [inline] |
The bit status is read-only.
Definition at line 70 of file TemplateDigitalOut.hpp.