A utility class to create a DigitalInInterface from 0 to 32 bits. More...
#include <TemplateDigitalIn.hpp>
Public Member Functions | |
TemplateDigitalIn () | |
The default constructor initialises the bit_status to zero. | |
bool | isOn (unsigned int bit) const |
bool | isOff (unsigned int bit) const |
bool | readBit (unsigned int bit) const |
unsigned int | readSequence (unsigned int start_bit, unsigned int stop_bit) const |
Protected Attributes | |
unsigned int | bit_status |
The status of all bits, with bit n being the bit selected by (bit_status >> n) & 0x1. |
A utility class to create a DigitalInInterface from 0 to 32 bits.
The result of the methods is stored in a protected variable bit_status, which can be used by a derived class.
Definition at line 44 of file TemplateDigitalIn.hpp.