|
fiber
|
Concept for tri-state pin (high, low, input) that can be immediatelly read from and written to. More...
#include <cPin.hpp>
Concept for tri-state pin (high, low, input) that can be immediatelly read from and written to.
For pin without any practical delay, like pins of the micro controller.
Implements the following interface:
sets the pin output level to the passed state
true: logic highfalse: logic lowsets the pin to logic high
sets the pin to logic low
sets the pin direction to the passed state
true: inputfalse: outputconfigurates the pin as an input-pin that can be read from.
configurates the pin as an output pin that can be written to
Returns: the logic value applied to the pin.
Returns: true is the pin is set to logic high.