Orocos Real-Time Toolkit
2.9.0
|
A class representing a Digital Output device which can read or write a maximum of 32 bits at once. More...
#include <rtt/extras/dev/DigitalOutInterface.hpp>
Public Member Functions | |
DigitalOutInterface (const std::string &name) | |
Create a DigitalOutInterface with an optional name. More... | |
DigitalOutInterface () | |
Create a not nameserverd DigitalOutInterface instance. More... | |
virtual | ~DigitalOutInterface () |
virtual void | switchOn (unsigned int n)=0 |
Sets the n'th output on. More... | |
virtual void | switchOff (unsigned int n)=0 |
Sets the n'th output off. More... | |
virtual void | setBit (unsigned int bit, bool value)=0 |
Sets the n'th output to value. More... | |
virtual void | setSequence (unsigned int start_bit, unsigned int stop_bit, unsigned int value)=0 |
Sets a sequence of bits to pattern value between start_bit and stop_bit inclusive. More... | |
virtual bool | checkBit (unsigned int n) const =0 |
Returns the status of bit n, starting from zero. More... | |
virtual unsigned int | checkSequence (unsigned int start_bit, unsigned int stop_bit) const =0 |
Returns the sequence of bits between start_bit and stop_bit inclusive, where start_bit occurs at position zero in the returned result. More... | |
virtual unsigned int | nbOfOutputs () const =0 |
Query the number of outputs of this card. More... | |
Static Public Attributes | |
static NameServer< DigitalOutInterface * > | nameserver |
The NameServer of this interface. More... | |
A class representing a Digital Output device which can read or write a maximum of 32 bits at once.
When there are N bits, the bits are numbered from Zero to N-1.
Definition at line 58 of file DigitalOutInterface.hpp.
|
inline |
Create a DigitalOutInterface with an optional name.
When name is not "", and unique, it can be retrieved through DigitalOutInterface::nameserver .
Definition at line 68 of file DigitalOutInterface.hpp.
|
inline |
Create a not nameserverd DigitalOutInterface instance.
Definition at line 75 of file DigitalOutInterface.hpp.
|
inlinevirtual |
Definition at line 78 of file DigitalOutInterface.hpp.
|
pure virtual |
Returns the status of bit n, starting from zero.
|
pure virtual |
Returns the sequence of bits between start_bit and stop_bit inclusive, where start_bit occurs at position zero in the returned result.
|
pure virtual |
Query the number of outputs of this card.
|
pure virtual |
Sets the n'th output to value.
|
pure virtual |
Sets a sequence of bits to pattern value between start_bit and stop_bit inclusive.
For example, setSequence(3, 3, 1) is equivalent to setBit(3, 1).
|
pure virtual |
Sets the n'th output off.
n | The number of the output to be switched off. The first output is number 0. |
|
pure virtual |
Sets the n'th output on.
n | The number of the output to be switched on. The first output is number 0. |
Referenced by __os_init().
|
static |
The NameServer of this interface.
Definition at line 85 of file DigitalOutInterface.hpp.
Referenced by __os_init(), and RTT::os::Thread::Thread().