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

The FeliCa card provider class for SpringCard reader. More...

#include <felicaspringcardcommands.hpp>

Inheritance diagram for logicalaccess::FeliCaSpringCardCommands:
logicalaccess::FeliCaCommands logicalaccess::Commands logicalaccess::ICommands

Public Member Functions

 FeliCaSpringCardCommands ()
 Constructor.
 
 FeliCaSpringCardCommands (std::string)
 
virtual ~FeliCaSpringCardCommands ()
 Destructor.
 
std::shared_ptr< PCSCReaderCardAdaptergetPCSCReaderCardAdapter () const
 Get the PC/SC reader/card adapter.
 
std::vector< unsigned short > getSystemCodes () override
 Get system codes.
 
std::vector< unsigned short > requestServices (const std::vector< unsigned short > &codes) override
 Request Services / Area versions.
 
unsigned char requestResponse () override
 Request Response, current FeliCa mode.
 
ByteVector read (const std::vector< unsigned short > &codes, const std::vector< unsigned short > &blocks) override
 Read data from the chip.
 
void write (const std::vector< unsigned short > &codes, const std::vector< unsigned short > &blocks, const ByteVector &data) override
 Write data to the chip.
 
- Public Member Functions inherited from logicalaccess::FeliCaCommands
 FeliCaCommands ()
 
 FeliCaCommands (std::string ct)
 
virtual std::vector< unsigned short > getSystemCodes ()=0
 Get system codes.
 
virtual unsigned short requestService (unsigned short code)
 
virtual std::vector< unsigned short > requestServices (const std::vector< unsigned short > &codes)=0
 Request Services / Area versions.
 
virtual unsigned char requestResponse ()=0
 Request Response, current FeliCa mode.
 
virtual ByteVector read (unsigned short code, unsigned short block)
 
virtual ByteVector read (unsigned short code, const std::vector< unsigned short > &blocks)
 
virtual ByteVector read (const std::vector< unsigned short > &codes, const std::vector< unsigned short > &blocks)=0
 Read data from the chip.
 
virtual void write (unsigned short code, const std::vector< unsigned short > &blocks, const ByteVector &data)
 
virtual void write (unsigned short code, unsigned short block, const ByteVector &data)
 
virtual void write (const std::vector< unsigned short > &codes, const std::vector< unsigned short > &blocks, const ByteVector &data)=0
 Write data to the chip.
 
- 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.
 

Additional Inherited Members

- Protected Member Functions inherited from logicalaccess::Commands
 Commands (std::string commandtype)
 Constructor.
 
- 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 FeliCa card provider class for SpringCard reader.

Constructor & Destructor Documentation

◆ FeliCaSpringCardCommands() [1/2]

logicalaccess::FeliCaSpringCardCommands::FeliCaSpringCardCommands ( )

Constructor.

◆ FeliCaSpringCardCommands() [2/2]

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

◆ ~FeliCaSpringCardCommands()

logicalaccess::FeliCaSpringCardCommands::~FeliCaSpringCardCommands ( )
virtual

Destructor.

Member Function Documentation

◆ getPCSCReaderCardAdapter()

std::shared_ptr< PCSCReaderCardAdapter > logicalaccess::FeliCaSpringCardCommands::getPCSCReaderCardAdapter ( ) const
inline

Get the PC/SC reader/card adapter.

Returns
The PC/SC reader/card adapter.

◆ getSystemCodes()

std::vector< unsigned short > logicalaccess::FeliCaSpringCardCommands::getSystemCodes ( )
overridevirtual

Get system codes.

Returns
System codes list.

Implements logicalaccess::FeliCaCommands.

◆ read()

ByteVector logicalaccess::FeliCaSpringCardCommands::read ( const std::vector< unsigned short > &  codes,
const std::vector< unsigned short > &  blocks 
)
overridevirtual

Read data from the chip.

Parameters
codesService / Area codes list.
blocksBlocks list.
Returns
Data read.

Implements logicalaccess::FeliCaCommands.

◆ requestResponse()

unsigned char logicalaccess::FeliCaSpringCardCommands::requestResponse ( )
overridevirtual

Request Response, current FeliCa mode.

Returns
FeliCa mode (0/1/2).

Implements logicalaccess::FeliCaCommands.

◆ requestServices()

std::vector< unsigned short > logicalaccess::FeliCaSpringCardCommands::requestServices ( const std::vector< unsigned short > &  codes)
overridevirtual

Request Services / Area versions.

Parameters
codesService / Area codes list.
Returns
Service / Area versions.

Implements logicalaccess::FeliCaCommands.

◆ write()

void logicalaccess::FeliCaSpringCardCommands::write ( const std::vector< unsigned short > &  codes,
const std::vector< unsigned short > &  blocks,
const ByteVector data 
)
overridevirtual

Write data to the chip.

Parameters
codesService / Area codes list.
blocksBlocks list.
dataData to write.

Implements logicalaccess::FeliCaCommands.


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