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

45 lines
927 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.

/*
* PinFromDecoderSetupv2.h
*
* Created on: 22 окт. 2019 г.
* Author: user
*/
#ifndef SOURCE_APPLICATION_BOARD_PINFROMDECODERSETUPV2_H_
#define SOURCE_APPLICATION_BOARD_PINFROMDECODERSETUPV2_H_
#include "../ISetupStep.hh"
#include "../../driver/GpioPinDecoderv2.hh"
namespace application { namespace virtualization {
struct PinFromDecoder_v2Setup: public ISetupStep {
driver::GpioPinDecoder_v2 * pin_decoder = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
uint16_t gpio_decoder_id;
Environment::GpioId gpio_id;
};
struct Setting {
uint16_t pin_id;
};
const Links & links;
const Setting & config;
PinFromDecoder_v2Setup( const Links & links, const Setting & config );
};
} /* namespace board */
} /* namespace application */
#endif /* SOURCE_APPLICATION_BOARD_PINFROMDECODERV2SETUP_H_ */