45 lines
927 B
C++
45 lines
927 B
C++
/*
|
||
* 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_ */
|