| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#pragma once |
| 22 |
|
| 23 |
#include <string> |
| 24 |
|
| 25 |
#include "Hardware/Protocols/P50xSerial.h" |
| 26 |
#include "Languages.h" |
| 27 |
|
| 28 |
namespace Hardware |
| 29 |
{ |
| 30 |
class HardwareParams; |
| 31 |
|
| 32 |
class MasterControl : public Protocols::P50xSerial |
| 33 |
{ |
| 34 |
public: |
| 35 |
MasterControl() = delete; |
| 36 |
MasterControl(const MasterControl&) = delete; |
| 37 |
MasterControl& operator=(const MasterControl&) = delete; |
| 38 |
|
| 39 |
inline MasterControl(const HardwareParams* const params) |
| 40 |
: Protocols::P50xSerial(params, "MasterControl", TypeTams) |
| 41 |
{ |
| 42 |
Init(); |
| 43 |
} |
| 44 |
|
| 45 |
virtual ~MasterControl() |
| 46 |
{ |
| 47 |
} |
| 48 |
|
| 49 |
static inline void GetArgumentTypesAndHint(std::map<unsigned char,ArgumentType>& argumentTypes, std::string& hint) |
| 50 |
{ |
| 51 |
argumentTypes[1] = ArgumentTypeSerialPort; |
| 52 |
argumentTypes[2] = ArgumentTypeS88Modules; |
| 53 |
hint = Languages::GetText(Languages::TextHintMasterControl); |
| 54 |
} |
| 55 |
|
| 56 |
private: |
| 57 |
static const unsigned char MaxS88ModulesMasterControl = 104; |
| 58 |
}; |
| 59 |
} |
| 60 |
|