7#ifndef LOGICALACCESS_OSDPREADERUNIT_HPP
8#define LOGICALACCESS_OSDPREADERUNIT_HPP
18class OSDPRReaderProvider;
40 std::string getName()
const override;
46 std::string getConnectedName()
override;
52 void setCardType(std::string cardType)
override;
63 bool waitInsertion(
unsigned int maxwait)
override;
73 bool waitRemoval(
unsigned int maxwait)
override;
81 bool waitKeypadInputs(
unsigned int maxwait);
87 std::shared_ptr<Chip> getSingleChip()
override;
93 std::vector<std::shared_ptr<Chip>> getChipList()
override;
102 bool connect()
override;
110 void disconnect()
override;
116 bool isConnected()
override;
122 bool connectToReader()
override;
127 void disconnectFromReader()
override;
133 std::string getReaderSerialNumber()
override;
139 void serialize(boost::property_tree::ptree &parentNode)
override;
145 void unSerialize(boost::property_tree::ptree &node)
override;
147 std::shared_ptr<Chip> createChip(std::string type)
override;
155 return std::dynamic_pointer_cast<OSDPReaderUnitConfiguration>(getConfiguration());
159 void checkPDAuthentication(std::shared_ptr<OSDPChannel> challenge);
161 std::shared_ptr<LCDDisplay> getLCDDisplay()
override;
163 std::shared_ptr<LEDBuzzerDisplay> getLEDBuzzerDisplay()
override;
170 void onCardEvent(uint8_t readerAddress,
ByteVector data, uint16_t bitCount);
172 void onKeypadEvent(uint8_t readerAddress,
ByteVector data, uint16_t bitCount);
174 void onTamperEvent(
bool tamperStatus,
bool powerFailure);
178 return m_tamperStatus;
183 return m_last_keypad;
The OSDP reader unit class.
Definition: osdpreaderunit.hpp:24
bool m_tamperStatus
Definition: osdpreaderunit.hpp:195
std::shared_ptr< OSDPCommands > & getOSDPCommands()
Definition: osdpreaderunit.hpp:165
ByteVector m_current_csn
Definition: osdpreaderunit.hpp:191
ByteVector getLastKeypadInputs() const
Definition: osdpreaderunit.hpp:181
std::shared_ptr< OSDPCommands > m_commands
Definition: osdpreaderunit.hpp:187
bool m_inserted
Definition: osdpreaderunit.hpp:189
ByteVector m_last_keypad
Definition: osdpreaderunit.hpp:193
std::shared_ptr< OSDPReaderUnitConfiguration > getOSDPConfiguration()
Get the STidSTR reader unit configuration.
Definition: osdpreaderunit.hpp:153
bool getTamperStatus() const
Definition: osdpreaderunit.hpp:176
The card types.
Definition: readerunit.hpp:42
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
STidSTR Reader unit configuration.