LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
felicacommands.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_FELICACOMMANDS_HPP
8#define LOGICALACCESS_FELICACOMMANDS_HPP
9
10#include <logicalaccess/key.hpp>
13
14namespace logicalaccess
15{
16#define CMD_FELICA "FeliCa"
17
21class LLA_CARDS_FELICA_API FeliCaCommands : public Commands
22{
23 public:
26 {
27 }
28
29 explicit FeliCaCommands(std::string ct)
30 : Commands(ct)
31 {
32 }
33
38 virtual std::vector<unsigned short> getSystemCodes() = 0;
39
40 virtual unsigned short requestService(unsigned short code);
41
47 virtual std::vector<unsigned short>
48 requestServices(const std::vector<unsigned short> &codes) = 0;
49
54 virtual unsigned char requestResponse() = 0;
55
56 virtual ByteVector read(unsigned short code, unsigned short block);
57
58 virtual ByteVector read(unsigned short code,
59 const std::vector<unsigned short> &blocks);
60
67 virtual ByteVector read(const std::vector<unsigned short> &codes,
68 const std::vector<unsigned short> &blocks) = 0;
69
70 virtual void write(unsigned short code, const std::vector<unsigned short> &blocks,
71 const ByteVector &data);
72
73 virtual void write(unsigned short code, unsigned short block, const ByteVector &data);
74
81 virtual void write(const std::vector<unsigned short> &codes,
82 const std::vector<unsigned short> &blocks,
83 const ByteVector &data) = 0;
84};
85}
86
87#endif
The base commands class for all card commands.
Definition: commands.hpp:21
The FeliCa commands class.
Definition: felicacommands.hpp:22
FeliCaCommands(std::string ct)
Definition: felicacommands.hpp:29
virtual void write(const std::vector< unsigned short > &codes, const std::vector< unsigned short > &blocks, const ByteVector &data)=0
Write data to the chip.
virtual ByteVector read(const std::vector< unsigned short > &codes, const std::vector< unsigned short > &blocks)=0
Read data from the chip.
FeliCaCommands()
Definition: felicacommands.hpp:24
virtual unsigned char requestResponse()=0
Request Response, current FeliCa mode.
virtual std::vector< unsigned short > getSystemCodes()=0
Get system codes.
virtual std::vector< unsigned short > requestServices(const std::vector< unsigned short > &codes)=0
Request Services / Area versions.
Commands.
#define CMD_FELICA
Definition: felicacommands.hpp:16
FeliCa location.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9