diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 15:40:22 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 15:40:22 +0100 |
| commit | 7830f0ae98d742467b948ed93c85e122be38fb83 (patch) | |
| tree | 08ab9e8e55a806300d8fcb00b1e8c41231d451e1 /src/Xpl2Protocol.h | |
| parent | df2be9eb678f12b6107d582d8ebd2ca2b4b7e92b (diff) | |
| download | QtXpl2-7830f0ae98d742467b948ed93c85e122be38fb83.tar.gz QtXpl2-7830f0ae98d742467b948ed93c85e122be38fb83.zip | |
CF_ configuration commands with JettingParamsResult and SetterResult enums
Diffstat (limited to 'src/Xpl2Protocol.h')
| -rw-r--r-- | src/Xpl2Protocol.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Xpl2Protocol.h b/src/Xpl2Protocol.h index 6d4a348..85d6895 100644 --- a/src/Xpl2Protocol.h +++ b/src/Xpl2Protocol.h @@ -5,11 +5,36 @@ #pragma once #include <QByteArray> +#include <QObject> #include <QVariantList> namespace Xpl2Protocol { +Q_NAMESPACE + +/** Extended success flag for CF_JC/PH_SET_JETTING_PARAMS responses. */ +enum class JettingParamsResult +{ + NozzleDriveDutyCycle = -5, + NozzleDriveFrequency = -4, + Drive = -3, + PwmFrequency = -2, + DutyCycle = -1, + Failed = 0, + Ok = 1 +}; +Q_ENUM_NS (JettingParamsResult) + +/** Extended success flag for CF_JC/PH_SETTER responses. */ +enum class SetterResult +{ + IncorrectNewValue = -1, + Failed = 0, + Ok = 1 +}; +Q_ENUM_NS (SetterResult) + constexpr char Terminator = '\n'; struct ParsedMessage |
