LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <osdpcommands.hpp>
Public Member Functions | |
OSDPCommands () | |
OSDPCommands (std::string ct) | |
~OSDPCommands () | |
void | initCommands (unsigned char address=0, bool installMode=false) |
std::shared_ptr< OSDPChannel > | poll () const |
std::shared_ptr< OSDPChannel > | challenge () const |
std::shared_ptr< OSDPChannel > | sCrypt () const |
std::shared_ptr< OSDPChannel > | keySet (const ByteVector &key) const |
std::shared_ptr< OSDPChannel > | led (s_led_cmd &led) const |
std::shared_ptr< OSDPChannel > | buz (s_buz_cmd &led) const |
std::shared_ptr< OSDPChannel > | text (s_text_cmd &text) const |
s_com | setCommunicationSettings (uint8_t address, uint32_t baudrate) const |
s_ftstat | fileTransfer (ByteVector file, uint8_t transferType=0x01) const |
s_ftstat | fileTransfer (uint32_t totalSize, uint32_t offset, ByteVector fragment, uint8_t transferType=0x01) const |
std::shared_ptr< OSDPChannel > | setProfile (unsigned char profile) const |
std::shared_ptr< OSDPChannel > | getProfile () const |
s_pdid_report | pdID () const |
std::vector< s_pdcap_report > | pdCAP () const |
s_lstat_report | localStatus () const |
s_lstat_report | localStatus (std::shared_ptr< OSDPChannel > channel) const |
ByteVector | inputStatus () const |
ByteVector | inputStatus (std::shared_ptr< OSDPChannel > channel) const |
ByteVector | outputStatus () const |
ByteVector | outputStatus (std::shared_ptr< OSDPChannel > channel) const |
ReaderTamperStatus | readerTamperStatus () const |
ReaderTamperStatus | readerTamperStatus (std::shared_ptr< OSDPChannel > channel) const |
std::shared_ptr< OSDPChannel > | abort () const |
std::shared_ptr< OSDPChannel > | bioRead (BiometricType type, BiometricFormat format, uint8_t quality) const |
std::shared_ptr< OSDPChannel > | bioMatch (BiometricType type, BiometricFormat format, uint8_t quality, ByteVector &bioTemplate) const |
std::shared_ptr< OSDPChannel > | getPIVData (s_pivdata &data) const |
std::shared_ptr< OSDPChannel > | sendTransparentCommand (const ByteVector &command) const |
std::shared_ptr< OSDPChannel > | disconnectFromSmartcard () const |
void | setSecureChannel (std::shared_ptr< OSDPChannel > channel) |
std::shared_ptr< OSDPChannel > | getChannel () const |
void | setCardEventHandler (OsdpReaderEvent cardHandler) |
void | setKeypadEventHandler (OsdpReaderEvent keypadHandler) |
void | setBioReadEventHandler (OsdpBioReadEvent bioreadHandler) |
void | setTamperEventHandler (OsdpTamperEvent tamperHandler) |
![]() | |
Commands ()=delete | |
Constructor. | |
virtual | ~Commands () |
std::shared_ptr< Chip > | getChip () const override |
Get the chip. | |
virtual void | setChip (std::shared_ptr< Chip > chip) |
Set the chip. | |
std::shared_ptr< ReaderCardAdapter > | getReaderCardAdapter () const override |
Get the reader/card adapter. | |
virtual void | setReaderCardAdapter (std::shared_ptr< ReaderCardAdapter > adapter) |
Set the reader/card adapter. | |
virtual const std::string & | getCmdType () const |
Get the cmd name. | |
virtual void | setCmdType (const std::string &command_type) |
Set the cmd name. | |
![]() | |
virtual | ~ICommands ()=default |
virtual std::shared_ptr< Chip > | getChip () const =0 |
Get the chip. | |
virtual std::shared_ptr< ReaderCardAdapter > | getReaderCardAdapter () const =0 |
Get the reader/card adapter. | |
Private Member Functions | |
std::shared_ptr< OSDPChannel > | stransmit () const |
std::shared_ptr< OSDPChannel > | transmit () const |
Private Attributes | |
std::shared_ptr< OSDPChannel > | m_channel |
OsdpReaderEvent | handleCardEvent |
OsdpReaderEvent | handleKeypadEvent |
OsdpBioReadEvent | handleBioReadEvent |
OsdpBioMatchEvent | handleBioMatchEvent |
OsdpTamperEvent | handleTamperEvent |
Additional Inherited Members | |
![]() | |
Commands (std::string commandtype) | |
Constructor. | |
![]() | |
std::shared_ptr< ReaderCardAdapter > | d_readerCardAdapter |
The reader/card adapter. | |
std::weak_ptr< Chip > | d_chip |
The chip. | |
std::string | d_commandtype |
The command type. | |
OSDP Commands class.
|
inline |
|
inlineexplicit |
|
inline |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::abort | ( | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::bioMatch | ( | BiometricType | type, |
BiometricFormat | format, | ||
uint8_t | quality, | ||
ByteVector & | bioTemplate | ||
) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::bioRead | ( | BiometricType | type, |
BiometricFormat | format, | ||
uint8_t | quality | ||
) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::buz | ( | s_buz_cmd & | led | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::challenge | ( | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::disconnectFromSmartcard | ( | ) | const |
s_ftstat logicalaccess::OSDPCommands::fileTransfer | ( | ByteVector | file, |
uint8_t | transferType = 0x01 |
||
) | const |
s_ftstat logicalaccess::OSDPCommands::fileTransfer | ( | uint32_t | totalSize, |
uint32_t | offset, | ||
ByteVector | fragment, | ||
uint8_t | transferType = 0x01 |
||
) | const |
|
inline |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::getPIVData | ( | s_pivdata & | data | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::getProfile | ( | ) | const |
void logicalaccess::OSDPCommands::initCommands | ( | unsigned char | address = 0 , |
bool | installMode = false |
||
) |
ByteVector logicalaccess::OSDPCommands::inputStatus | ( | ) | const |
ByteVector logicalaccess::OSDPCommands::inputStatus | ( | std::shared_ptr< OSDPChannel > | channel | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::keySet | ( | const ByteVector & | key | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::led | ( | s_led_cmd & | led | ) | const |
s_lstat_report logicalaccess::OSDPCommands::localStatus | ( | ) | const |
s_lstat_report logicalaccess::OSDPCommands::localStatus | ( | std::shared_ptr< OSDPChannel > | channel | ) | const |
ByteVector logicalaccess::OSDPCommands::outputStatus | ( | ) | const |
ByteVector logicalaccess::OSDPCommands::outputStatus | ( | std::shared_ptr< OSDPChannel > | channel | ) | const |
std::vector< s_pdcap_report > logicalaccess::OSDPCommands::pdCAP | ( | ) | const |
s_pdid_report logicalaccess::OSDPCommands::pdID | ( | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::poll | ( | ) | const |
ReaderTamperStatus logicalaccess::OSDPCommands::readerTamperStatus | ( | ) | const |
ReaderTamperStatus logicalaccess::OSDPCommands::readerTamperStatus | ( | std::shared_ptr< OSDPChannel > | channel | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::sCrypt | ( | ) | const |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::sendTransparentCommand | ( | const ByteVector & | command | ) | const |
|
inline |
|
inline |
s_com logicalaccess::OSDPCommands::setCommunicationSettings | ( | uint8_t | address, |
uint32_t | baudrate | ||
) | const |
|
inline |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::setProfile | ( | unsigned char | profile | ) | const |
|
inline |
|
inline |
|
private |
std::shared_ptr< OSDPChannel > logicalaccess::OSDPCommands::text | ( | s_text_cmd & | text | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |