24 #define NDEF_MB (1 << 7) 25 #define NDEF_ME (1 << 6)
26 #define NDEF_CF (1 << 5)
27 #define NDEF_SR (1 << 4)
28 #define NDEF_IL (1 << 3)
29 #define NDEF_TNF_EMPTY 0x00
30 #define NDEF_TNF_WELLKNOWN 0x01
31 #define NDEF_TNF_MEDIA 0x02
32 #define NDEF_TNF_URI 0x03
33 #define NDEF_TNF_EXT 0x04
34 #define NDEF_TNF_UNKNOWN 0x05
35 #define NDEF_TNF_UNCHANGED 0x06
36 #define NDEF_TNF_RESERVED 0x07
51 uint8_t* Type, uint32_t TypeLen,
52 uint8_t* Data, uint32_t DataLen);
70 uint8_t MessageBegin:1;
100 uint16_t* DataLength);
113 uint16_t DataLength);
154 void NfcNdefGetRecord(uint8_t* NdefFile, uint8_t* PrevRecord, uint8_t** NewRecord);
bool NfcNdefResetBuffer(uint8_t *NdefFile, uint16_t NdefFileSize)
Nullify NDEF messege output buffer.
void NfcNdefGetFirstRecord(uint8_t *NdefFile, uint8_t **NewRecord)
Get the pointer to the first record inside an NDEF message.
void NfcNdefRecordParse(uint8_t *Record, struct ndef_record_t *NdefRec)
Parse raw NDEF record into the structure.
nfc_ndef_changed_cb_t * NdefChangedCb
Callback to call on NDEF write attempt in card emulation mode.
void NfcNdefGetRecord(uint8_t *NdefFile, uint8_t *PrevRecord, uint8_t **NewRecord)
Get the pointer to the next record inside an NDEF message.
const char * TypeName
NFC message type name.
bool NfcNdefGetDataLength(uint8_t *NdefFile, uint16_t NdefFileSize, uint16_t *DataLength)
Get current NDEF messege length.
uint8_t TypeLen
Type Name length.
Table element of interrupt handlers called on NDEF write attempt for supported NFC message types...
uint8_t * Id
Pointer to Record ID.
uint32_t DataLen
Record Payload length.
bool nfc_ndef_changed_cb_t(const void *Nfc_p, uint8_t *Type, uint32_t TypeLen, uint8_t *Data, uint32_t DataLen)
The callback is called on NDEF write attempt in card emulation mode.
bool NfcNdefAddDataLength(uint8_t *NdefFile, uint16_t NdefFileSize, uint16_t DataLength)
Increase current NDEF messege length. The function must be used when adding a record to the NDEF mess...
uint8_t * Data
Pointer to Record Payload.
uint8_t * TypeName
Pointer to Type Name.
uint8_t IdLen
Record ID length.
bool NfcNdefFinalize(uint8_t *NdefFile, uint16_t NdefFileSize)
Close the NDEF messege. The function must be used after NDEF message altering either with NfcNdefAddR...
Structure describes one parsed NDEF record. See standard NFC Data Exchange Format specification...
bool NfcNdefAddRecord(uint8_t *NdefFile, uint16_t NdefFileSize, struct ndef_record_t *NdefRec)
Add a new record to the NDEF messege.