LibLogicalAccess
2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
plugins
logicalaccess
plugins
cards
mifareultralight
mifareultralightcstoragecardservice.hpp
Go to the documentation of this file.
1
7
#ifndef LOGICALACCESS_MIFAREULTRALIGHTCSTORAGECARDSERVICE_HPP
8
#define LOGICALACCESS_MIFAREULTRALIGHTCSTORAGECARDSERVICE_HPP
9
10
#include <
logicalaccess/plugins/cards/mifareultralight/mifareultralightstoragecardservice.hpp
>
11
#include <
logicalaccess/plugins/cards/mifareultralight/mifareultralightccommands.hpp
>
12
#include <
logicalaccess/plugins/cards/mifareultralight/mifareultralightcchip.hpp
>
13
14
namespace
logicalaccess
15
{
16
#define STORAGECARDSERVICE_MIFARE_ULTRALIGHTC "MifareUltralightCStorage"
17
21
class
LLA_CARDS_MIFAREULTRALIGHT_API
MifareUltralightCStorageCardService
22
:
public
MifareUltralightStorageCardService
23
{
24
public
:
29
explicit
MifareUltralightCStorageCardService
(std::shared_ptr<Chip> chip);
30
34
~MifareUltralightCStorageCardService
();
35
36
std::string
getCSType
()
override
37
{
38
return
STORAGECARDSERVICE_MIFARE_ULTRALIGHTC
;
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>(
82
getMifareUltralightChip
());
83
}
84
};
85
}
86
87
#endif
/* LOGICALACCESS_MIFAREULTRALIGHTCSTORAGECARDSERVICE_HPP */
getMifareUltralightChip
LLA_CARDS_MIFAREULTRALIGHT_API void getMifareUltralightChip(std::shared_ptr< logicalaccess::Chip > *chip)
Definition:
libraryentry.cpp:23
logicalaccess::MifareUltralightCStorageCardService
The Mifare Ultralight C storage card service base class.
Definition:
mifareultralightcstoragecardservice.hpp:23
logicalaccess::MifareUltralightCStorageCardService::getMifareUltralightCChip
std::shared_ptr< MifareUltralightCChip > getMifareUltralightCChip() const
Definition:
mifareultralightcstoragecardservice.hpp:79
logicalaccess::MifareUltralightCStorageCardService::getCSType
std::string getCSType() override
Definition:
mifareultralightcstoragecardservice.hpp:36
logicalaccess::MifareUltralightStorageCardService
The Mifare Ultralight base profile class.
Definition:
mifareultralightstoragecardservice.hpp:26
ByteVector
std::vector< uint8_t > ByteVector
Definition:
lla_fwd.hpp:80
mifareultralightcchip.hpp
mifareultralightccommands.hpp
Mifare Ultralight C commands.
STORAGECARDSERVICE_MIFARE_ULTRALIGHTC
#define STORAGECARDSERVICE_MIFARE_ULTRALIGHTC
Definition:
mifareultralightcstoragecardservice.hpp:16
mifareultralightstoragecardservice.hpp
Mifare Ultralight storage card service.
logicalaccess
Definition:
asn1.hpp:9
logicalaccess::CardBehavior
CardBehavior
The card behaviors.
Definition:
storagecardservice.hpp:20
Generated on Wed Mar 29 2023 13:50:37 for LibLogicalAccess by
1.9.6