49 lines
989 B
C++
49 lines
989 B
C++
/*
|
|
* GpioPinDecoderv2Setup.h
|
|
*
|
|
* Created on: 23 îêò. 2019 ã.
|
|
* Author: user
|
|
*/
|
|
|
|
#ifndef SOURCE_APPLICATION_BOARD_GPIOPINDECODERV2SETUP_H_
|
|
#define SOURCE_APPLICATION_BOARD_GPIOPINDECODERV2SETUP_H_
|
|
|
|
#include "../ISetupStep.hh"
|
|
|
|
#include "../../driver/Demux.hh"
|
|
|
|
namespace application { namespace virtualization {
|
|
|
|
struct GpioPinDecoder_v2Setup : public ISetupStep {
|
|
|
|
driver::Demux * demux = nullptr;
|
|
|
|
bool input( Environment & env );
|
|
void build( Environment & env );
|
|
|
|
struct Links {
|
|
uint16_t demux_id;
|
|
|
|
uint16_t decoder_id;
|
|
};
|
|
|
|
struct Setting {
|
|
uint16_t default_pin;
|
|
uint16_t pin0_id;
|
|
uint16_t pin1_id;
|
|
uint16_t pin2_id;
|
|
uint16_t pin3_id;
|
|
};
|
|
|
|
const Links & links;
|
|
const Setting & config;
|
|
|
|
GpioPinDecoder_v2Setup( const Links & links, const Setting & setting );
|
|
|
|
};
|
|
|
|
} /* namespace board */
|
|
} /* namespace application */
|
|
|
|
#endif /* SOURCE_APPLICATION_BOARD_GPIOPINDECODERV2SETUP_H_ */
|