LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
felicachip.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_FELICACHIP_HPP
8#define LOGICALACCESS_FELICACHIP_HPP
9
12
13#include <string>
14#include <vector>
15#include <iostream>
16
17namespace logicalaccess
18{
19#define CHIP_FELICA "FeliCa"
20
21#define FELICA_CODE_NDEF_READ 0x000B
22#define FELICA_CODE_NDEF_WRITE 0x0009
23
27class LLA_CARDS_FELICA_API FeliCaChip : public Chip
28{
29 public:
33 explicit FeliCaChip(std::string ct);
34
38 FeliCaChip();
39
43 virtual ~FeliCaChip();
44
49 std::string getGenericCardType() const override
50 {
51 return CHIP_FELICA;
52 }
53
58 std::shared_ptr<LocationNode> getRootLocationNode() override;
59
65 std::shared_ptr<CardService> getService(CardServiceType serviceType) override;
66
71 std::shared_ptr<Location> createLocation() const override;
72
77 std::shared_ptr<FeliCaCommands> getFeliCaCommands() const
78 {
79 return std::dynamic_pointer_cast<FeliCaCommands>(getCommands());
80 }
81
82 protected:
83 static void addBlockNode(std::shared_ptr<LocationNode> rootNode, unsigned short code,
84 unsigned short block);
85};
86}
87
88#endif
Chip descriptor.
The base chip class for all chip. Each chip have is own object and providers according to himself and...
Definition: chip.hpp:37
The FeliCa base chip class.
Definition: felicachip.hpp:28
std::string getGenericCardType() const override
Get the generic card type.
Definition: felicachip.hpp:49
std::shared_ptr< FeliCaCommands > getFeliCaCommands() const
Get the FeliCa card provider for I/O access.
Definition: felicachip.hpp:77
#define CHIP_FELICA
Definition: felicachip.hpp:19
FeliCa commands.
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35