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

44 lines
1.3 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.

/*
* PwmTripControllerSetup.hh
*
* Created on: 4 мар. 2020 г.
* Author: titov
*/
#ifndef UMLIBRARY_APPLICATION_BOARD_PWMTRIPCONTROLLERSETUP_HH_
#define UMLIBRARY_APPLICATION_BOARD_PWMTRIPCONTROLLERSETUP_HH_
#include "../ISetupStep.hh"
#include "../../peripheral/IPwmTrip.hh"
namespace application { namespace board {
//!Контроллер состояния прерывателя PWM.
struct PwmTripController : public ISetupStep {
peripheral::IPwmTrip * trip = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id trip_handler; //!<Обработчик аппаратного отключения ШИМ.
Environment::StatusId one_shot; //!<Условие срабатывания однократного отключения ШИМ.
Environment::StatusId cycle_by_cycle; //!<Условие срабатывания мнократного отключения ШИМ.
Environment::Id reset_action; //!<Сброс флага срабатывания аппаратного отключения ШИМ.
};
const Links & links;
PwmTripController( const Links & links );
};
}}
#endif /* UMLIBRARY_APPLICATION_BOARD_PWMTRIPCONTROLLERSETUP_HH_ */