LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
topazcommands.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_TOPAZCOMMANDS_HPP
8#define LOGICALACCESS_TOPAZCOMMANDS_HPP
9
10#include <logicalaccess/plugins/cards/topaz/lla_cards_topaz_api.hpp>
14
15namespace logicalaccess
16{
17#define CMD_TOPAZ "Topaz"
18
19class TopazChip;
20
24class LLA_CARDS_TOPAZ_API TopazCommands : public Commands
25{
26 public:
29 {
30 }
31
32 explicit TopazCommands(std::string ct)
33 : Commands(ct)
34 {
35 }
36
46 virtual ByteVector readPages(int start_page, int stop_page);
47
57 virtual void writePages(int start_page, int stop_page, const ByteVector &buf);
58
63 virtual void lockPage(int page);
64
73 virtual ByteVector readPage(int page) = 0;
74
83 virtual void writePage(int page, const ByteVector &buf) = 0;
84
85 protected:
86 std::shared_ptr<TopazChip> getTopazChip() const;
87};
88}
89
90#endif
LLA_CARDS_TOPAZ_API void getTopazChip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition: libraryentry.cpp:12
The base commands class for all card commands.
Definition: commands.hpp:21
The Topaz commands class.
Definition: topazcommands.hpp:25
virtual ByteVector readPage(int page)=0
Read a whole page.
TopazCommands()
Definition: topazcommands.hpp:27
TopazCommands(std::string ct)
Definition: topazcommands.hpp:32
virtual void writePage(int page, const ByteVector &buf)=0
Write a whole page.
Commands.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
Topaz AccessInfo.
#define CMD_TOPAZ
Definition: topazcommands.hpp:17
Topaz Location.