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

49 lines
993 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.

/*
* 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_ */