-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpumpcommands.h
More file actions
33 lines (28 loc) · 850 Bytes
/
pumpcommands.h
File metadata and controls
33 lines (28 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef PUMPCOMMANDS_H
#define PUMPCOMMANDS_H
#include <QString>
struct PumpPhase {
int phaseNumber = 1; // The phase number sent via PHN command
QString function; // "RAT", "LIN", "STP"
double rate = 0.0; // Flow rate in µL/min
double volume; // Optional — only used for "RAT"
QString time; // Optional — only used for "LIN". Hours:Minutes or Seconds:Tenths depending on phase number (n, n+1)
QString direction = "INF"; // "INF" or "WDR", default is "INF"
};
enum class PumpCommand {
Start,
Stop,
GetVersion,
RateFunction,
RampFunction,
PauseFunction,
StopFunction,
SetPhase,
SetFlowRate,
SetVolume,
SetFlowDirection,
SetRampTime,
SetVolUnits,
SetPause
};
#endif // PUMPCOMMANDS_H