From f45017e9f38003a98b1d344bc03fb33c64374e9f Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 16 Nov 2023 10:13:26 +0100 Subject: [PATCH] update interfaces.h --- plugins/interfaces.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/plugins/interfaces.h b/plugins/interfaces.h index 1e56809..65a0f67 100755 --- a/plugins/interfaces.h +++ b/plugins/interfaces.h @@ -377,6 +377,23 @@ struct T_changer struct T_bna { + // reported with STATUS: + uint8_t setup; // 0: not 1: got valid parameters from device + uint8_t FeatureLevel; + uint16_t countryCode; // programmed in EMP + uint16_t scalingFactor; // z.B. 5 + uint8_t decimalPlace; + uint8_t pad1; + uint16_t stackerCap; + uint16_t billSecureLevel; + uint8_t hasEscrow; + uint8_t accBillTypes[16]; // programmed in EMP z.B. (bit 0..7): 1 2 4 10 20 40 0 0 + uint16_t currentStackerLevel; // requested number of notes in billbox + + // settings from Master + uint16_t intendedAccept; // bit 0 =5€ + uint16_t pad2; + uint16_t billDenomination[16]; }; @@ -2215,6 +2232,7 @@ public: Q_UNUSED(notesToAccept); } // can be used to block notes dynamically, example: from now only 5€ bills are allowed (if only 3€ are to be paid) + // only valid till next start-payment. Cannot add notes which are not activated in Json virtual void bna_requestParameters() const {} // send command to DC in order to get static invariable device parameters like currency @@ -2335,9 +2353,15 @@ signals: //#define HWINF_iid "Atb.Psa1256ptu5.software.HWapi/5.0" // 10.10.2023: added coin changer -#define HWINF_iid "Atb.Psa1256ptu5.software.HWapi/5.1" +//#define HWINF_iid "Atb.Psa1256ptu5.software.HWapi/5.1" // 20.10.2023: added bill validator +// hier dazwischen: Umstellung ALLER Prototypen +// hier von =0 auf {} durch Gerhard + +#define HWINF_iid "Atb.Psa1256ptu5.software.HWapi/5.2" + // 7.11.2023: bna functions activated + Q_DECLARE_INTERFACE(hwinf, HWINF_iid)