1 #ifndef ORG_EEROS_CONTROL_SWITCH_HPP_
2 #define ORG_EEROS_CONTROL_SWITCH_HPP_
11 template < u
int8_t N = 2,
typename T =
double >
18 this->
out.getSignal().setTimestamp(this->
in[
currentInput].getSignal().getTimestamp());
30 if(index >= 0 && index < N) {
Definition: Switch.hpp:12
virtual Input< T > & getIn(uint8_t index)
Definition: Switch.hpp:21
Definition: Output.hpp:10
virtual bool switchToInput(uint8_t index)
Definition: Switch.hpp:29
virtual uint8_t getCurrentInput() const
Definition: Switch.hpp:37
virtual Output< T > & getOut()
Definition: Switch.hpp:25
Output< T > out
Definition: Switch.hpp:43
virtual void run()
Definition: Switch.hpp:16
Switch(uint8_t initInputIndex)
Definition: Switch.hpp:14
uint8_t currentInput
Definition: Switch.hpp:44
Input< T > in[N]
Definition: Switch.hpp:42