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

47 lines
892 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.

/*
* DemuxSetup.h
*
* Created on: 23 окт. 2019 г.
* Author: user
*/
#ifndef SOURCE_APPLICATION_BOARD_DEMUXSETUP_H_
#define SOURCE_APPLICATION_BOARD_DEMUXSETUP_H_
#include "../ISetupStep.hh"
#include "../../peripheral/IPort.hh"
namespace application { namespace virtualization {
struct DemuxSetup : public ISetupStep {
peripheral::IPort * gpio_port = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
uint16_t gpio_port_id;
uint16_t demux_id;
};
struct Setting {
uint32_t pin_mask;
uint16_t pin_set_strategy;
uint16_t not_use;
};
const Links & links;
const Setting & config;
DemuxSetup( const Links & links, const Setting & config );
};
} /* namespace board */
} /* namespace application */
#endif /* SOURCE_APPLICATION_BOARD_DEMUXSETUP_H_ */