M5Unit-NFC 0.0.3 git rev:59f5362
Loading...
Searching...
No Matches
m5::nfc::ndef::Attribute Struct Reference

NDEF Record attribute (1st byte) More...

#include <ndef_record.hpp>

Public Member Functions

Getter
bool messageBegin () const
 
bool messageEnd () const
 
bool chunk () const
 
bool shortRecord () const
 
bool idLength () const
 
TNF tnf () const
 
Setter
void messageBegin (const bool b)
 
void messageEnd (const bool b)
 
void chunk (const bool b)
 
void shortRecord (const bool b)
 
void idLength (const bool b)
 
void tnf (const TNF t)
 

Public Attributes

uint8_t value {}
 

Static Public Attributes

Bit field
static constexpr uint8_t MB {0x80}
 Message Begin.
 
static constexpr uint8_t ME {0x40}
 Message End.
 
static constexpr uint8_t CF {0x20}
 Chunked Flag.
 
static constexpr uint8_t SR {0x10}
 Short Flag.
 
static constexpr uint8_t IL {0x08}
 ID Length (If disabled (specified as 0), ID LENGTH and ID can be omitted)
 
static constexpr uint8_t TNF_MASK {0x07}
 Type Name Format.
 

Detailed Description

NDEF Record attribute (1st byte)