7#ifndef LOGICALACCESS_OK5553READERUNIT_HPP
8#define LOGICALACCESS_OK5553READERUNIT_HPP
13#include <logicalaccess/plugins/readers/ok5553/lla_readers_ok5553_api.hpp>
14#include <boost/asio/ip/tcp.hpp>
19class OK5553ReaderCardAdapter;
20class OK5553ReaderProvider;
47 std::string getName()
const override;
53 std::string getConnectedName()
override;
59 void setCardType(std::string cardType)
override;
70 bool waitInsertion(
unsigned int maxwait)
override;
80 bool waitRemoval(
unsigned int maxwait)
override;
87 std::shared_ptr<Chip> createChip(std::string type)
override;
93 std::shared_ptr<Chip> getSingleChip()
override;
99 std::vector<std::shared_ptr<Chip>> getChipList()
override;
105 std::shared_ptr<Chip> getChipInAir(
unsigned int maxwait = 2000);
111 virtual std::shared_ptr<OK5553ReaderCardAdapter> getDefaultOK5553ReaderCardAdapter();
120 bool connect()
override;
128 void disconnect()
override;
134 bool isConnected()
override;
140 bool connectToReader()
override;
145 void disconnectFromReader()
override;
151 std::string getReaderSerialNumber()
override;
157 void serialize(boost::property_tree::ptree &parentNode)
override;
163 void unSerialize(boost::property_tree::ptree &node)
override;
171 return std::dynamic_pointer_cast<OK5553ReaderUnitConfiguration>(
179 std::shared_ptr<OK5553ReaderProvider> getOK5553ReaderProvider()
const;
The OK5553 reader unit class.
Definition: ok5553readerunit.hpp:31
std::shared_ptr< OK5553ReaderUnitConfiguration > getOK5553Configuration()
Get the OK5553 reader unit configuration.
Definition: ok5553readerunit.hpp:169
ByteVector removalIdentifier
The new identifier that will be used for the next waitInsertion after the waitRemoval.
Definition: ok5553readerunit.hpp:210
ByteVector d_successedRATS
Last successed RATS result.
Definition: ok5553readerunit.hpp:204
The card types.
Definition: readerunit.hpp:42
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
ChipType
ChipType code in OK5553 protocol.
Definition: ok5553readerunit.hpp:25
@ MIFARE
Definition: ok5553readerunit.hpp:25
@ MIFAREULTRALIGHT
Definition: ok5553readerunit.hpp:25
@ DESFIRE
Definition: ok5553readerunit.hpp:25
OK55553 Reader unit configuration.