LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
logicalaccess::MifareUltralightCACSACRCommands Class Reference

The Mifare Ultralight C commands class for ACS ACR reader. More...

#include <mifareultralightcacsacrcommands.hpp>

Inheritance diagram for logicalaccess::MifareUltralightCACSACRCommands:
logicalaccess::MifareUltralightCPCSCCommands logicalaccess::MifareUltralightPCSCCommands logicalaccess::MifareUltralightCCommands logicalaccess::MifareUltralightCommands logicalaccess::Commands logicalaccess::ICommands

Public Member Functions

 MifareUltralightCACSACRCommands ()
 Constructor.
 
 MifareUltralightCACSACRCommands (std::string)
 
virtual ~MifareUltralightCACSACRCommands ()
 Destructor.
 
- Public Member Functions inherited from logicalaccess::MifareUltralightCPCSCCommands
 MifareUltralightCPCSCCommands ()
 Constructor.
 
 MifareUltralightCPCSCCommands (std::string)
 
virtual ~MifareUltralightCPCSCCommands ()
 Destructor.
 
void authenticate (std::shared_ptr< TripleDESKey > authkey) override
 Authenticate to the chip.
 
- Public Member Functions inherited from logicalaccess::MifareUltralightPCSCCommands
 MifareUltralightPCSCCommands ()
 Constructor.
 
 MifareUltralightPCSCCommands (std::string)
 
virtual ~MifareUltralightPCSCCommands ()
 Destructor.
 
std::shared_ptr< PCSCReaderCardAdaptergetPCSCReaderCardAdapter () const
 Get the PC/SC reader/card adapter.
 
ByteVector readPage (int page) override
 Read a whole page.
 
void writePage (int page, const ByteVector &buf) override
 Write a whole page.
 
- Public Member Functions inherited from logicalaccess::MifareUltralightCommands
 MifareUltralightCommands ()
 
 MifareUltralightCommands (std::string ct)
 
virtual ByteVector readPages (int start_page, int stop_page)
 Read several pages.
 
virtual void writePages (int start_page, int stop_page, const ByteVector &buf)
 Write several pages.
 
virtual void lockPage (int page)
 Set a page as read-only.
 
virtual ByteVector readPage (int page)=0
 Read a whole page.
 
virtual void writePage (int page, const ByteVector &buf)=0
 Write a whole page.
 
- Public Member Functions inherited from logicalaccess::Commands
 Commands ()=delete
 Constructor.
 
virtual ~Commands ()
 
std::shared_ptr< ChipgetChip () const override
 Get the chip.
 
virtual void setChip (std::shared_ptr< Chip > chip)
 Set the chip.
 
std::shared_ptr< ReaderCardAdaptergetReaderCardAdapter () 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.
 
- Public Member Functions inherited from logicalaccess::ICommands
virtual ~ICommands ()=default
 
virtual std::shared_ptr< ChipgetChip () const =0
 Get the chip.
 
virtual std::shared_ptr< ReaderCardAdaptergetReaderCardAdapter () const =0
 Get the reader/card adapter.
 
- Public Member Functions inherited from logicalaccess::MifareUltralightCCommands
virtual ~MifareUltralightCCommands ()=default
 
void authenticate (std::shared_ptr< AccessInfo > aiToUse)
 Authenticate to the chip.
 
void changeKey (std::shared_ptr< AccessInfo > aiToWrite)
 Change the chip authentication key.
 
virtual void changeKey (std::shared_ptr< TripleDESKey > key)
 Change the chip authentication key.
 
virtual void lockPage (int page)
 Set a page as read-only.
 
virtual void authenticate (std::shared_ptr< TripleDESKey > authkey)=0
 Authenticate to the chip.
 
virtual void writePage (int page, const ByteVector &buf)=0
 

Protected Member Functions

ISO7816Response sendGenericCommand (const ByteVector &data) override
 
- Protected Member Functions inherited from logicalaccess::MifareUltralightCPCSCCommands
virtual void startGenericSession ()
 
virtual void stopGenericSession ()
 
std::shared_ptr< MifareUltralightChipgetMifareUltralightChip () override
 
void writePage (int page, const ByteVector &buf) override
 
virtual ISO7816Response sendGenericCommand (const ByteVector &data)
 
virtual ByteVector authenticate_PICC1 ()
 
virtual ByteVector authenticate_PICC2 (const ByteVector &encRndAB)
 
virtual std::shared_ptr< MifareUltralightChipgetMifareUltralightChip ()
 
- Protected Member Functions inherited from logicalaccess::Commands
 Commands (std::string commandtype)
 Constructor.
 
- Protected Member Functions inherited from logicalaccess::MifareUltralightCCommands
std::shared_ptr< MifareUltralightCChipgetMifareUltralightCChip ()
 
virtual std::shared_ptr< MifareUltralightChipgetMifareUltralightChip ()=0
 

Additional Inherited Members

- Protected Attributes inherited from logicalaccess::Commands
std::shared_ptr< ReaderCardAdapterd_readerCardAdapter
 The reader/card adapter.
 
std::weak_ptr< Chipd_chip
 The chip.
 
std::string d_commandtype
 The command type.
 

Detailed Description

The Mifare Ultralight C commands class for ACS ACR reader.

Constructor & Destructor Documentation

◆ MifareUltralightCACSACRCommands() [1/2]

logicalaccess::MifareUltralightCACSACRCommands::MifareUltralightCACSACRCommands ( )

Constructor.

◆ MifareUltralightCACSACRCommands() [2/2]

logicalaccess::MifareUltralightCACSACRCommands::MifareUltralightCACSACRCommands ( std::string  ct)
explicit

◆ ~MifareUltralightCACSACRCommands()

logicalaccess::MifareUltralightCACSACRCommands::~MifareUltralightCACSACRCommands ( )
virtual

Destructor.

Member Function Documentation

◆ sendGenericCommand()

ISO7816Response logicalaccess::MifareUltralightCACSACRCommands::sendGenericCommand ( const ByteVector data)
overrideprotectedvirtual

The documentation for this class was generated from the following files: