TemplateDigitalIn Class Reference

A utility class to create a DigitalInInterface from 0 to 32 bits. More...

#include <TemplateDigitalIn.hpp>

List of all members.

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.

Detailed Description

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.

See also:
DigitalInInterface

Definition at line 44 of file TemplateDigitalIn.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 15:05:29 2010 for OrocosComponentLibrary by  doxygen 1.6.3