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