LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
mifareultralightcommands.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_MIFAREULTRALIGHTCOMMANDS_HPP
8#define LOGICALACCESS_MIFAREULTRALIGHTCOMMANDS_HPP
9
13
14namespace logicalaccess
15{
16#define CMD_MIFAREULTRALIGHT "MifareUltralight"
17
18class MifareUltralightChip;
19
23class LLA_CARDS_MIFAREULTRALIGHT_API MifareUltralightCommands : public Commands
24{
25 public:
28 {
29 }
30
31 explicit MifareUltralightCommands(std::string ct)
32 : Commands(ct)
33 {
34 }
35
45 virtual ByteVector readPages(int start_page, int stop_page);
46
56 virtual void writePages(int start_page, int stop_page, const ByteVector &buf);
57
62 virtual void lockPage(int page);
63
72 virtual ByteVector readPage(int page) = 0;
73
82 virtual void writePage(int page, const ByteVector &buf) = 0;
83
84 protected:
85 virtual std::shared_ptr<MifareUltralightChip> getMifareUltralightChip();
86};
87}
88
89#endif
LLA_CARDS_MIFAREULTRALIGHT_API void getMifareUltralightChip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition: libraryentry.cpp:23
The base commands class for all card commands.
Definition: commands.hpp:21
The Mifare Ultralight commands class.
Definition: mifareultralightcommands.hpp:24
virtual void writePage(int page, const ByteVector &buf)=0
Write a whole page.
virtual ByteVector readPage(int page)=0
Read a whole page.
MifareUltralightCommands(std::string ct)
Definition: mifareultralightcommands.hpp:31
MifareUltralightCommands()
Definition: mifareultralightcommands.hpp:26
Commands.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Mifare Ultralight AccessInfo.
#define CMD_MIFAREULTRALIGHT
Definition: mifareultralightcommands.hpp:16
Mifare Ultralight Location.
Definition: asn1.hpp:9