From 7830f0ae98d742467b948ed93c85e122be38fb83 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Mon, 16 Mar 2026 15:40:22 +0100 Subject: CF_ configuration commands with JettingParamsResult and SetterResult enums --- src/Xpl2Protocol.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/Xpl2Protocol.h') 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 +#include #include 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 -- cgit v1.2.3