7#ifndef LOGICALACCESS_MIFARESTIDSTRCOMMANDS_HPP
8#define LOGICALACCESS_MIFARESTIDSTRCOMMANDS_HPP
19#define CMD_MIFARESTIDSTR "MifareSTidSTR"
45 return std::dynamic_pointer_cast<STidSTRReaderCardAdapter>(
46 getReaderCardAdapter());
58 void releaseRFIDField()
const;
66 void loadKey(std::shared_ptr<Location> location,
MifareKeyType keytype,
67 std::shared_ptr<MifareKey> key)
override;
78 std::shared_ptr<MifareKey> key,
bool vol =
true)
override;
86 void authenticate(
unsigned char blockno,
unsigned char keyno,
95 void authenticate(
unsigned char blockno, std::shared_ptr<KeyStorage> key_storage,
106 ByteVector readBinary(
unsigned char blockno,
size_t len)
override;
115 void updateBinary(
unsigned char blockno,
const ByteVector &buf)
override;
122 void increment(
unsigned char blockno, uint32_t value)
override;
129 void decrement(
unsigned char blockno, uint32_t value)
override;
141 virtual ByteVector readBinaryIndex(
unsigned char keyindex,
unsigned char blockno,
152 virtual void updateBinaryIndex(
unsigned char keyindex,
unsigned char blockno,
The Mifare commands class.
Definition: mifarecommands.hpp:24
The Mifare commands class for STidSTR reader.
Definition: mifarestidstrcommands.hpp:25
std::shared_ptr< STidSTRReaderCardAdapter > getSTidSTRReaderCardAdapter() const
Get the STidSTR reader/card adapter.
Definition: mifarestidstrcommands.hpp:43
bool d_useSKB
Use SKB for read/write operation, or not.
Definition: mifarestidstrcommands.hpp:158
MifareKeyType d_lastKeyType
The last key type used;.
Definition: mifarestidstrcommands.hpp:168
unsigned char d_skbIndex
The SKB key index if SKB use.
Definition: mifarestidstrcommands.hpp:163
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
MifareKeyType
Mifare Key Type.
Definition: mifareaccessinfo.hpp:18
Default STidSTR reader/card adapter.