Filled struct T_bna and added new version number.

This commit is contained in:
Thomas 2023-11-14 08:34:32 +01:00
parent fb6a0b086f
commit 79868787cf

View File

@ -377,6 +377,23 @@ struct T_changer
struct T_bna 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); 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) // 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 {} virtual void bna_requestParameters() const {}
// send command to DC in order to get static invariable device parameters like currency // 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" //#define HWINF_iid "Atb.Psa1256ptu5.software.HWapi/5.0"
// 10.10.2023: added coin changer // 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 // 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) Q_DECLARE_INTERFACE(hwinf, HWINF_iid)