39 lines
773 B
C++
39 lines
773 B
C++
/*
|
|
* HysteresisValueAsync.cpp
|
|
*
|
|
* Created on: 8 èþí. 2020 ã.
|
|
* Author: LeonidTitov
|
|
*/
|
|
|
|
#include "HysteresisValueAsync.hh"
|
|
|
|
void processing::acs::HysteresisValueAsync::set( TypeInput input ) {
|
|
|
|
TypeSet val = hysteresis( input );
|
|
|
|
output->set(val);
|
|
|
|
}
|
|
|
|
processing::acs::HysteresisValueAsync::TypeOutput processing::acs::HysteresisValueAsync::get() const {
|
|
|
|
return processing::acs::HysteresisValueAsync::TypeOutput();
|
|
|
|
}
|
|
|
|
void processing::acs::HysteresisValueAsync::set_output(
|
|
SetInterface * new_output ) {
|
|
|
|
output = new_output;
|
|
|
|
}
|
|
|
|
void processing::acs::HysteresisValueAsync::reset() {
|
|
|
|
output = nullptr;
|
|
|
|
}
|
|
|
|
processing::acs::HysteresisValueAsync::HysteresisValueAsync(
|
|
Hysteresis & hst ) : hysteresis(hst), output(nullptr) {}
|