LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
mifareultralightcstoragecardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_MIFAREULTRALIGHTCSTORAGECARDSERVICE_HPP
8#define LOGICALACCESS_MIFAREULTRALIGHTCSTORAGECARDSERVICE_HPP
9
13
14namespace logicalaccess
15{
16#define STORAGECARDSERVICE_MIFARE_ULTRALIGHTC "MifareUltralightCStorage"
17
21class LLA_CARDS_MIFAREULTRALIGHT_API MifareUltralightCStorageCardService
23{
24 public:
29 explicit MifareUltralightCStorageCardService(std::shared_ptr<Chip> chip);
30
35
36 std::string getCSType() override
37 {
39 }
40
46 void erase(std::shared_ptr<Location> location,
47 std::shared_ptr<AccessInfo> aiToUse) override;
48
57 void writeData(std::shared_ptr<Location> location,
58 std::shared_ptr<AccessInfo> aiToUse,
59 std::shared_ptr<AccessInfo> aiToWrite, const ByteVector &data,
60 CardBehavior behaviorFlags) override;
61
70 ByteVector readData(std::shared_ptr<Location> location,
71 std::shared_ptr<AccessInfo> aiToUse, size_t length,
72 CardBehavior behaviorFlags) override;
73
74 protected:
75 /*
76 * \brief Get the associated Mifare Ultralight C chip.
77 * \return The Mifare Ultralight C chip.
78 */
79 std::shared_ptr<MifareUltralightCChip> getMifareUltralightCChip() const
80 {
81 return std::dynamic_pointer_cast<MifareUltralightCChip>(
83 }
84};
85}
86
87#endif /* LOGICALACCESS_MIFAREULTRALIGHTCSTORAGECARDSERVICE_HPP */
LLA_CARDS_MIFAREULTRALIGHT_API void getMifareUltralightChip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition: libraryentry.cpp:23
The Mifare Ultralight C storage card service base class.
Definition: mifareultralightcstoragecardservice.hpp:23
std::shared_ptr< MifareUltralightCChip > getMifareUltralightCChip() const
Definition: mifareultralightcstoragecardservice.hpp:79
std::string getCSType() override
Definition: mifareultralightcstoragecardservice.hpp:36
The Mifare Ultralight base profile class.
Definition: mifareultralightstoragecardservice.hpp:26
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Mifare Ultralight C commands.
#define STORAGECARDSERVICE_MIFARE_ULTRALIGHTC
Definition: mifareultralightcstoragecardservice.hpp:16
Mifare Ultralight storage card service.
Definition: asn1.hpp:9
CardBehavior
The card behaviors.
Definition: storagecardservice.hpp:20