MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/adapter/InverterEndpoint.hh

34 lines
810 B
C++
Raw Permalink Normal View History

2024-06-07 11:12:56 +03:00
/*
* InverterEndpoint.hh
*
* Created on: 30 мая 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_TECHNOLOGICAL_ADAPTER_INVERTERENDPOINT_HH_
#define UMLIBRARY_TECHNOLOGICAL_ADAPTER_INVERTERENDPOINT_HH_
#include "ControlSystemWrapper.hpp"
#include "../../driver/IInverter.hh"
namespace technological { namespace adapter {
struct OnInverterEndpointConnect {
void operator()( driver::IInverter * inverter ) {
inverter->enPulse();
}
};
struct OnInverterEndpointDisconnect {
void operator()( driver::IInverter * inverter ) {
inverter->disPulse();
}
};
typedef EndpointWrapper<driver::IInverter, driver::IInverter, OnInverterEndpointConnect, OnInverterEndpointDisconnect> InverterEndpoint;
}}
#endif /* UMLIBRARY_TECHNOLOGICAL_ADAPTER_INVERTERENDPOINT_HH_ */