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

42 lines
1.0 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.

/*
* PinDoubler.h
*
* Created on: 20 окт. 2019 г.
* Author: user
*/
#ifndef SOURCE_APPLICATION_BOARD_PINDOUBLER_H_
#define SOURCE_APPLICATION_BOARD_PINDOUBLER_H_
#include "../ISetupStep.hh"
#include "../../peripheral/IGpio.hh"
namespace application { namespace utility {
//!Копирование интерфейсов доступа к аппаратным выводам. УДАЛИТЬ.
struct CopyPin : public ISetupStep {
peripheral::IGpio * origin_gpio = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::GpioId origin_pin; //!<Исходный аппаратный вывод.
Environment::GpioId gpio_clone1; //!<Копия аппаратного вывода.
Environment::GpioId gpio_clone2; //!<Копия аппаратного вывода.
};
const Links & links;
CopyPin( const Links & links );
};
} /* namespace board */
} /* namespace application */
#endif /* SOURCE_APPLICATION_BOARD_PINDOUBLER_H_ */