17#include "keypop/reader/selection/spi/SmartCard.hpp"
21namespace storagecard {
24using keypop::reader::selection::spi::SmartCard;
53 virtual std::vector<uint8_t>
getUID()
const = 0;
88 virtual std::vector<uint8_t>
getBlock(
int blockAddress)
const = 0;
109 virtual std::vector<uint8_t>
110 getBlocks(
int fromBlockAddress,
int toBlockAddress)
const = 0;
Represents the different types of storage cards supported by the library.
Represents a storage card with various methods to retrieve information and data from it.
virtual std::vector< uint8_t > getUID() const =0
Retrieves the unique identifier (UID) of the storage card.
virtual std::shared_ptr< std::vector< uint8_t > > getSystemBlock() const =0
Retrieves the system block from the storage card when available.
virtual ProductType getProductType() const =0
Returns the product type of the storage card.
virtual ~StorageCard()=default
virtual std::vector< uint8_t > getBlocks(int fromBlockAddress, int toBlockAddress) const =0
Retrieves the data blocks within the specified range from the memory image of the storage card.
virtual std::vector< uint8_t > getBlock(int blockAddress) const =0
Retrieves the data block at the specified block address.