MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/procedures/InverterTest.hh
2024-06-07 11:12:56 +03:00

50 lines
1.5 KiB
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.

/*
* InverterTest.hh
*
* Created on: 5 мая 2021 г.
* Author: titov
*/
#ifndef UMLIBRARY_APPLICATION_PROCEDURES_INVERTERTEST_HH_
#define UMLIBRARY_APPLICATION_PROCEDURES_INVERTERTEST_HH_
#include "../ISetupStep.hh"
#include "../../technological/function/InverterDebug.hh"
#include "../../driver/IInverter.hh"
#include "../../peripheral/IPwmOverride.hh"
namespace application { namespace procedures {
struct InverterTest : public ISetupStep {
typedef ResourceKeeper<driver::IInverter> InverterResource;
InverterResource * resource = nullptr;
peripheral::IPwmOverride * pwm_u = nullptr;
peripheral::IPwmOverride * pwm_v = nullptr;
peripheral::IPwmOverride * pwm_w = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id inverter; //!<Тестируемый инвертор.
Environment::Id pwm_u; //!<Прямое управление импульсами: фаза u.
Environment::Id pwm_v; //!<Прямое управление импульсами: фаза v.
Environment::Id pwm_w; //!<Прямое управление импульсами: фаза w.
Environment::TechFunctionId function; //!<Функция проверки работы инвертора.
};
const Links & links;
InverterTest( const Links & links );
};
}}
#endif /* UMLIBRARY_APPLICATION_PROCEDURES_INVERTERTEST_HH_ */