mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 14:23:50 -07:00
ndef record decode OK
This commit is contained in:
parent
34a133451e
commit
fffa921aa0
2 changed files with 145 additions and 2 deletions
|
@ -15,6 +15,30 @@
|
|||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef enum {
|
||||
tnfEmptyRecord = 0x00,
|
||||
tnfWellKnownRecord = 0x01,
|
||||
tnfMIMEMediaRecord = 0x02,
|
||||
tnfAbsoluteURIRecord = 0x03,
|
||||
tnfExternalRecord = 0x04,
|
||||
tnfUnknownRecord = 0x05,
|
||||
tnfUnchangedRecord = 0x06
|
||||
} TypeNameFormat_t;
|
||||
|
||||
typedef struct {
|
||||
bool MessageBegin;
|
||||
bool MessageEnd;
|
||||
bool ChunkFlag;
|
||||
bool ShortRecordBit;
|
||||
bool IDLenPresent;
|
||||
TypeNameFormat_t TypeNameFormat;
|
||||
size_t TypeLen;
|
||||
size_t PayloadLen;
|
||||
size_t IDLen;
|
||||
size_t len;
|
||||
size_t RecLen;
|
||||
} NDEFHeader_t;
|
||||
|
||||
extern int NDEFDecodeAndPrint(uint8_t *ndef, size_t ndefLen, bool verbose);
|
||||
|
||||
#endif // _NDEF_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue