This commit is contained in:
2024-05-14 14:51:30 +02:00
parent 63d8178b4b
commit ca93b3369f
21 changed files with 1037 additions and 96 deletions

View File

@@ -52,6 +52,7 @@ enum class GeneralError
LicenceSizeCardMismatch = 53,
LicenceMismatch = 54,
LicenceCRCMismatch = 54,
UIDReadError = 55,
ItemsCountMismatch = 61
};
@@ -168,6 +169,13 @@ struct LicenceELC2Info
map<DWORD, DWORD> licences = {};
};
/* struktury pro ELC 3 */
// defaultní struktura pro ELC 3
struct LicenceELC3Info
{
map<DWORD, DWORD> licences = {};
};
// struct LicenceELC2Info_1
// {
// map<int, int> licences = {};
@@ -180,13 +188,27 @@ struct LicenceELC2Item
DWORD dataPointsCount{};
};
// struktura polozky ELC 2,
// struktura polozky ELC 2 pro další kompatibility
struct LicenceELC2Item_1
{
DWORD protocolId{};
DWORD dataPointsCount{};
};
// defaultni struktura polozky ELC 3
struct LicenceELC3Item
{
DWORD protocolId{};
DWORD dataPointsCount{};
};
// struktura polozky ELC 3 pro další kompatibility,
struct LicenceELC3Item_1
{
DWORD protocolId{};
DWORD dataPointsCount{};
};
class LicenceException : public std::exception
{
public: