LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
mifareultralightccommands.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_MIFAREULTRALIGHTCCOMMANDS_HPP
8#define LOGICALACCESS_MIFAREULTRALIGHTCCOMMANDS_HPP
9
12
13namespace logicalaccess
14{
15class MifareUltralightCChip;
16
20class LLA_CARDS_MIFAREULTRALIGHT_API MifareUltralightCCommands
21{
22 public:
23 virtual ~MifareUltralightCCommands() = default;
24
29 void authenticate(std::shared_ptr<AccessInfo> aiToUse);
30
35 void changeKey(std::shared_ptr<AccessInfo> aiToWrite);
36
41 virtual void changeKey(std::shared_ptr<TripleDESKey> key);
42
47 virtual void lockPage(int page);
48
53 virtual void authenticate(std::shared_ptr<TripleDESKey> authkey) = 0;
54
55 virtual void writePage(int page, const ByteVector &buf) = 0;
56
57 protected:
58 std::shared_ptr<MifareUltralightCChip> getMifareUltralightCChip();
59
60 virtual std::shared_ptr<MifareUltralightChip> getMifareUltralightChip() = 0;
61};
62}
63
64#endif
LLA_CARDS_MIFAREULTRALIGHT_API void getMifareUltralightCChip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition: libraryentry.cpp:14
The Mifare Ultralight C commands class.
Definition: mifareultralightccommands.hpp:21
virtual void writePage(int page, const ByteVector &buf)=0
virtual std::shared_ptr< MifareUltralightChip > getMifareUltralightChip()=0
virtual void authenticate(std::shared_ptr< TripleDESKey > authkey)=0
Authenticate to the chip.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Mifare Ultralight C AccessInfo.
Mifare Ultralight commands.
Definition: asn1.hpp:9