37 #ifndef DIGITAL_OUTPUT_HPP 38 #define DIGITAL_OUTPUT_HPP 66 : board( dig_out ), relaynumber( relay_nr ), invert(_invert)
74 : board( 0 ), relaynumber( 0 ), invert(initial_state)
91 board->setBit( relaynumber, on_off != invert );
102 board->setBit( relaynumber, !invert );
113 board->setBit( relaynumber, invert );
126 return invert != board->checkBit( relaynumber );
133 unsigned int relaynumber;
DigitalOutput(DigitalOutInterface *dig_out, unsigned int relay_nr, bool _invert=false)
Create a new Relay acting on a digital output device.
void setBit(bool on_off)
Set the bit to the on or off state.
void switchOn()
Set the bit high of the digital output.
A DigitalOut represents any on/off output.
void switchOff()
Set the bit low of the digital output.
bool isOn() const
Check if the output is on (high).
~DigitalOutput()
Destruct a DigitalOutput.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
DigitalOutput(bool initial_state=false)
Create a virtual (software) relay.
A class representing a Digital Output device which can read or write a maximum of 32 bits at once...