#include <DigitalInInterface.hpp>

Public Member Functions | |
| DigitalInInterface (const std::string &name) | |
| DigitalInInterface () | |
| virtual bool | isOff (unsigned int bit=0) const =0 |
| virtual bool | isOn (unsigned int bit=0) const =0 |
| virtual unsigned int | nbOfInputs () const =0 |
| virtual bool | readBit (unsigned int bit=0) const =0 |
| virtual unsigned int | readSequence (unsigned int start_bit, unsigned int stop_bit) const =0 |
| virtual | ~DigitalInInterface () |
Static Public Attributes | |
| static NameServer< DigitalInInterface * > | nameserver |
Additional Inherited Members | |
Private Member Functions inherited from RTT::dev::NameServerRegistrator< DigitalInInterface * > | |
| NameServerRegistrator () | |
| NameServerRegistrator (typename boost::call_traits< NameServer< DigitalInInterface * > >::reference nameserver, const NameType &name, typename boost::call_traits< DigitalInInterface * >::const_reference object) | |
| ~NameServerRegistrator () | |
A class representing a Digital Input device from which a maximum of 32 bits can be read at once. When there are N bits, the bits are numbered from Zero to N-1.
Definition at line 56 of file DigitalInInterface.hpp.
|
inline |
Construct a nameserved DigitalInInterface instance. The object can then be retrieved using DigitalInInterface::nameserver .
| name | The name which will refer to this instance. |
Definition at line 67 of file DigitalInInterface.hpp.
|
inline |
Create a not nameserved DigitalInInterface instance.
Definition at line 75 of file DigitalInInterface.hpp.
|
inlinevirtual |
Definition at line 78 of file DigitalInInterface.hpp.
|
pure virtual |
Inspect if a certain bit is on.
| bit | The bit to check, starting from zero. |
Implemented in RTT::FakeDigitalDevice.
|
pure virtual |
Inspect if a certain bit is on.
| bit | The bit to check, starting from zero. |
Implemented in RTT::FakeDigitalDevice.
|
pure virtual |
Returns the number of bits that can be read for digital input.
Implemented in RTT::FakeDigitalDevice.
|
pure virtual |
Inspect a bit.
| bit | The bit to check, starting from zero. |
Implemented in RTT::FakeDigitalDevice.
|
pure virtual |
Inspect a sequence of bits.
| start_bit | The first bit to check. |
| stop_bit | The last bit (inclusive) to check. |
Implemented in RTT::FakeDigitalDevice.
|
static |
The NameServer of this interface.
Definition at line 85 of file DigitalInInterface.hpp.