47 lines
892 B
C++
47 lines
892 B
C++
/*
|
||
* 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_ */
|