MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/adapter/InverterEndpoint.hh
2024-06-07 11:12:56 +03:00

34 lines
810 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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_ */