M5Unit-NFC 0.1.0 git rev:93745b5
Loading...
Searching...
No Matches
m5::nfc::v::PICC Struct Reference

PICC for NFC-V. More...

#include <nfcv.hpp>

Public Member Functions

bool valid () const
 Valid?
 
uint8_t manufacturerCode () const
 Gets manufacturer code.
 
uint8_t icIdentifier () const
 Gets IC identifier.
 
uint8_t icReference () const
 Gets IC reference.
 
uint16_t totalSize () const
 Total memory size.
 
uint16_t userAreaSize () const
 Total user area size.
 
NFCForumTag nfcForumTagType () const
 NFC ForumTag.
 
uint16_t firstUserBlock () const
 Gets the first user block.
 
uint16_t lastUserBlock () const
 Gets the last user block.
 
std::string uidAsString () const
 Gets the uid string.
 
std::string typeAsString () const
 Gets the type string.
 

Public Attributes

uint8_t uid [8] {}
 UID (MSB-first)
 
Type type {}
 Type.
 
uint8_t dsfID {}
 Data Storage Format Identifier.
 
uint8_t afi {}
 Application Family Identifier.
 
uint8_t icRef {}
 IC Reference.
 
uint8_t block_size {}
 Byte size of 1 block.
 
uint8_t _pad {}
 
uint16_t blocks {}
 Number of blocks.
 

Detailed Description

PICC for NFC-V.

Member Function Documentation

◆ firstUserBlock()

uint16_t m5::nfc::v::PICC::firstUserBlock ( ) const
inline

Gets the first user block.

Returns
First user block number, or 0xFFFF if invalid

◆ icIdentifier()

uint8_t m5::nfc::v::PICC::icIdentifier ( ) const
inline

Gets IC identifier.

Returns
IC identifier, or 0x00 if invalid

◆ icReference()

uint8_t m5::nfc::v::PICC::icReference ( ) const
inline

Gets IC reference.

Returns
IC reference, or 0xFF if invalid

◆ lastUserBlock()

uint16_t m5::nfc::v::PICC::lastUserBlock ( ) const
inline

Gets the last user block.

Returns
Last user block number, or 0xFFFF if invalid

◆ manufacturerCode()

uint8_t m5::nfc::v::PICC::manufacturerCode ( ) const
inline

Gets manufacturer code.

Returns
Manufacturer code, or 0xFF if invalid

◆ nfcForumTagType()

NFCForumTag m5::nfc::v::PICC::nfcForumTagType ( ) const
inline

NFC ForumTag.

Returns
NFC Forum Tag Type

◆ totalSize()

uint16_t m5::nfc::v::PICC::totalSize ( ) const
inline

Total memory size.

Returns
Total memory size in bytes

◆ userAreaSize()

uint16_t m5::nfc::v::PICC::userAreaSize ( ) const
inline

Total user area size.

Returns
User area size in bytes

◆ valid()

bool m5::nfc::v::PICC::valid ( ) const
inline

Valid?

Returns
True if UID and memory information are valid