|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <MifarePlusSL1Chip.hpp>
Public Member Functions | |
| MifarePlusSL1Chip (const std::string &cardType, int nb_sectors) | |
| int | getSecurityLevel () const override |
| std::shared_ptr< AccessInfo > | createAccessInfo () const override |
| Create default Mifare access informations. | |
| const std::string & | getCardType () const override |
| Get the card type of the chip. | |
| std::string | getGenericCardType () const override |
| Get the generic card type. | |
| std::shared_ptr< Commands > | getCommands () const override |
| Get the commands. | |
| ByteVector | getChipIdentifier () const override |
| Get the chip identifier. | |
| std::shared_ptr< CardService > | getService (CardServiceType serviceType) override |
| Get a card service for this card provider. | |
Public Member Functions inherited from logicalaccess::MifareChip | |
| MifareChip () | |
| Constructor for generic Mifare. | |
| MifareChip (std::string cardtype) | |
| Constructor for generic Mifare. | |
| virtual | ~MifareChip () |
| Destructor. | |
| std::string | getGenericCardType () const override |
| Get the generic card type. | |
| std::shared_ptr< LocationNode > | getRootLocationNode () override |
| Get the root location node. | |
| unsigned int | getNbSectors () const |
| Get number of sectors. | |
| std::shared_ptr< CardService > | getService (CardServiceType serviceType) override |
| Get a card service for this card provider. | |
| std::shared_ptr< AccessInfo > | createAccessInfo () const override |
| Create default Mifare access informations. | |
| std::shared_ptr< Location > | createLocation () const override |
| Create default Mifare location. | |
| std::shared_ptr< MifareCommands > | getMifareCommands () const |
| Get the Mifare commands. | |
Public Member Functions inherited from logicalaccess::Chip | |
| Chip () | |
| Constructor. | |
| Chip (std::string cardtype) | |
| Constructor. | |
| virtual | ~Chip () |
| Destructor. | |
| const std::string & | getCardType () const override |
| Get the card type of the chip. | |
| std::string | getGenericCardType () const override |
| Get the generic card type. | |
| virtual std::shared_ptr< LocationNode > | getRootLocationNode () |
| Get the root location node. | |
| std::shared_ptr< Commands > | getCommands () const override |
| Get the commands. | |
| void | setCommands (std::shared_ptr< Commands > commands) |
| Set commands. | |
| ByteVector | getChipIdentifier () const override |
| Get the chip identifier. | |
| virtual void | setChipIdentifier (ByteVector identifier) |
| Set the chip identifier. | |
| ChipPowerStatus | getPowerStatus () const |
| Get the chip power status. | |
| void | setPowerStatus (ChipPowerStatus powerStatus) |
| Set the chip power status. | |
| unsigned char | getReceptionLevel () const |
| Get the chip reception level. | |
| void | setReceptionLevel (unsigned char receptionLevel) |
| Set the chip reception level. | |
| virtual std::shared_ptr< AccessInfo > | createAccessInfo () const |
| Create default access informations. | |
| virtual std::shared_ptr< Location > | createLocation () const |
| Create default location. | |
| std::shared_ptr< CardService > | getService (CardServiceType serviceType) override |
| Get a card service for this chip. | |
| template<typename T > | |
| std::shared_ptr< T > | getService () |
| bool | operator< (const Chip &chip) const |
Public Member Functions inherited from logicalaccess::IChip | |
| virtual | ~IChip ()=default |
| virtual const std::string & | getCardType () const =0 |
| Get the card type of the chip. | |
| virtual std::string | getGenericCardType () const =0 |
| Get the generic card type. | |
| virtual std::shared_ptr< Commands > | getCommands () const =0 |
| Get the commands. | |
| virtual ByteVector | getChipIdentifier () const =0 |
| Get the chip identifier. | |
| virtual std::shared_ptr< CardService > | getService (CardServiceType serviceType)=0 |
| Get a card service for this chip. | |
Public Member Functions inherited from logicalaccess::MifarePlusChip | |
| virtual | ~MifarePlusChip ()=default |
| MifarePlusChip () | |
| virtual int | getSecurityLevel () const |
| std::string | getGenericCardType () const override |
| Get the generic card type. | |
Additional Inherited Members | |
Static Public Member Functions inherited from logicalaccess::MifareChip | |
| static void | addSectorNode (std::shared_ptr< LocationNode > rootNode, int sector) |
| Add a sector node to a root node. | |
| static void | addBlockNode (std::shared_ptr< LocationNode > rootNode, int sector, unsigned char block) |
| Add a block node to a root node. | |
Static Public Member Functions inherited from logicalaccess::MifarePlusChip | |
| static uint16_t | key_number_from_sector (int sector, MifareKeyType type) |
Protected Member Functions inherited from logicalaccess::MifareChip | |
| MifareChip (std::string cardtype, unsigned int nbSectors) | |
| Constructor. | |
Protected Attributes inherited from logicalaccess::MifareChip | |
| unsigned int | d_nbSectors |
| The number of sectors in the Mifare card. | |
Protected Attributes inherited from logicalaccess::Chip | |
| std::string | d_cardtype |
| The card type of the profile. | |
| ByteVector | d_chipIdentifier |
| The chip identifier. | |
| ChipPowerStatus | d_powerStatus |
| The chip power status. Most chip doesn't have his own power supply. | |
| std::shared_ptr< Commands > | d_commands |
| Commands object. | |
| unsigned char | d_receptionLevel |
| The chip reception level. | |
A base class for MifarePlus in SecurityLevel 1.
This mostly acts as a tag, because the chip has no additional functions.
| MifarePlusSL1Chip::MifarePlusSL1Chip | ( | const std::string & | cardType, |
| int | nb_sectors | ||
| ) |
|
overridevirtual |
Create default Mifare access informations.
Reimplemented from logicalaccess::MifareChip.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get the generic card type.
Reimplemented from logicalaccess::MifareChip.
|
overridevirtual |
Reimplemented from logicalaccess::MifarePlusChip.
|
overridevirtual |
Get a card service for this card provider.
| serviceType | The card service type. |
Reimplemented from logicalaccess::MifareChip.
1.9.6