6 #include "../network.h" 24 enum SPDTswitch { A = 0x01, B = 0x02, C = 0x04, D = 0x08,
25 E = 0x10, F = 0x20, G = 0x40, H = 0x80 };
31 void connectTo(
const char *addr);
49 void connectionStatus(
bool ok);
50 void answerReady(
const QString &ans);
53 void sendCommand(
const QString &cmd);
57 void dumpBuffer(QByteArray ba)
const;
67 static IFSwitch *instance()
69 if (is_instance == 0) is_instance =
new IFSwitch();
75 void connectToServer();
78 static IFSwitch *is_instance;
88 static BackendSwitch *instance()
90 if (bs_instance == 0) bs_instance =
new BackendSwitch();
96 void connectToServer();
99 static BackendSwitch *bs_instance;
103 #endif // MINICIRCUITS_H void setPattern(uint setting)
Set the requested switches as a bit pattern.
Definition: minicircuit.cpp:37
void setSwitch(MiniCircuit::SPDTswitch sw, bool flag)
Set the requested switch.
Definition: minicircuit.cpp:51
SPDTswitch
Avaliable switches.
Definition: minicircuit.h:24
A class to control a MiniCircuit unit (IF and backend switch).
Definition: minicircuit.h:17