|
M5Unit-NFC 0.0.3 git rev:59f5362
|
PICC information for NFC-F. More...
#include <nfcf.hpp>
Public Member Functions | |
| bool | valid () const |
| Valid for detection? | |
| bool | validEmulation () const |
| Valid for emulation? | |
| uint16_t | userAreaSize () const |
| Total user area size. | |
| uint16_t | firstUserBlock () const |
| Gets the first user block. | |
| uint16_t | lastUserBlock () const |
| Gets the last user block. | |
| bool | isUserBlock (const block_t block) const |
| Is user block? | |
| uint8_t | maximumReadBlocks () const |
| Maximum number of blocks that can be read simultaneously. | |
| uint8_t | maximumWriteBlocks () const |
| Maximum number of blocks that can be write simultaneously. | |
| bool | checkFormat (const Format f) const |
| Check format. | |
| bool | supportsNDEF () const |
| Supports NDEF? | |
| NFCForumTag | nfcForumTagType () const |
| NFC ForumTag. | |
| bool | emulate (const Type t, const uint8_t idm[FELICA_ID_LENGTH], const uint8_t pmm[FELICA_ID_LENGTH], const uint16_t sc=0) |
| Emulation settings. | |
| std::string | idmAsString () const |
| Gets the IDm string. | |
| std::string | pmmAsString () const |
| Gets the PMm string. | |
| std::string | typeAsString () const |
| Gets the type string. | |
Public Attributes | ||
| union { | ||
| uint8_t m [16] {} | ||
| struct { | ||
| uint8_t idm [FELICA_ID_LENGTH] | ||
| Manufacture ID. | ||
| uint8_t pmm [FELICA_ID_LENGTH] | ||
| Manufacture Parameter. | ||
| } | ||
| }; | ||
| uint16_t | request_data {} | |
| Any request data if exists. | ||
| RequestCode | request_code {} | |
| Tyepe of the request_data. | ||
| Type | type {} | |
| PICC Type. | ||
| Format | format {} | |
| Format type group bits. | ||
| uint8_t | _pad {} | |
| uint16_t | dfc_format {} | |
| DFC format ID:0x82[8,9] BE if format include DFC. | ||
| uint16_t | emulation_sc {} | |
| System code for emulation. | ||
PICC information for NFC-F.
| bool m5::nfc::f::PICC::emulate | ( | const Type | t, |
| const uint8_t | idm[FELICA_ID_LENGTH], | ||
| const uint8_t | pmm[FELICA_ID_LENGTH], | ||
| const uint16_t | sc = 0 ) |
Emulation settings.
| t | Type |
| idm | IDm |
| pmm | OMm |
| sc | Sysetem code |