LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
deisterreadercardadapter.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_DEFAULTDEISTERREADERCARDADAPTER_HPP
8#define LOGICALACCESS_DEFAULTDEISTERREADERCARDADAPTER_HPP
9
11#include <logicalaccess/plugins/readers/deister/lla_readers_deister_api.hpp>
12#include <string>
13#include <vector>
14
15namespace logicalaccess
16{
20class LLA_READERS_DEISTER_API DeisterReaderCardAdapter : public ReaderCardAdapter
21{
22 public:
27
32
33 static const unsigned char SHFT;
34 static const unsigned char SOM;
35 static const unsigned char SOC;
36 static const unsigned char STOP;
37 static const unsigned char Dummy;
38 static const unsigned char
40 static const unsigned char
42 static const unsigned char
44 static const unsigned char
52 ByteVector adaptCommand(const ByteVector &command) override;
53
59 ByteVector adaptAnswer(const ByteVector &answer) override;
60
61 protected:
67 static ByteVector prepareDataForDevice(const ByteVector &data);
68
74 static ByteVector prepareDataFromDevice(const ByteVector &data);
75
79 unsigned char d_destination;
80
84 unsigned char d_source;
85};
86}
87
88#endif /* LOGICALACCESS_DEFAULTDEISTERREADERCARDADAPTER_HPP */
A default Deister reader/card adapter class.
Definition: deisterreadercardadapter.hpp:21
static const unsigned char SOM
The start of message value.
Definition: deisterreadercardadapter.hpp:34
static const unsigned char Dummy
The dummy value.
Definition: deisterreadercardadapter.hpp:37
static const unsigned char STOP
The stop value, end of message.
Definition: deisterreadercardadapter.hpp:36
static const unsigned char SHFT_SOC
The shift 00 value to replace SOC value in message.
Definition: deisterreadercardadapter.hpp:43
static const unsigned char SOC
The start of command value.
Definition: deisterreadercardadapter.hpp:35
unsigned char d_destination
Target device bus address destination.
Definition: deisterreadercardadapter.hpp:79
unsigned char d_source
Transmitter bus address source.
Definition: deisterreadercardadapter.hpp:84
static const unsigned char SHFT
The shift value.
Definition: deisterreadercardadapter.hpp:33
static const unsigned char SHFT_STOP
The shift 00 value to replace STOP value in message.
Definition: deisterreadercardadapter.hpp:45
static const unsigned char SHFT_SHFT
The shift 00 value to replace SHFT value in message.
Definition: deisterreadercardadapter.hpp:39
static const unsigned char SHFT_SOM
The shift 00 value to replace SOM value in message.
Definition: deisterreadercardadapter.hpp:41
A reader/card adapter base class. It provide an abstraction layer between the card and the reader to ...
Definition: readercardadapter.hpp:20
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
Reader/card adapter.