From e27446a8f8c470cc7a41cfeec1e6ffe4f23478e0 Mon Sep 17 00:00:00 2001 From: cbdev Date: Thu, 22 Jun 2023 01:11:31 +0200 Subject: Basic NTAG support --- nfcommander.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'nfcommander.h') diff --git a/nfcommander.h b/nfcommander.h index 79b8790..b4622a1 100644 --- a/nfcommander.h +++ b/nfcommander.h @@ -7,12 +7,11 @@ #endif typedef enum { - tag_unset, + tag_unset, /*unknown tag type*/ + tag_unknown, /*unsupported tag*/ tag_mifare1, tag_ntag, - tag_desfire, - tag_ultralight, - tag_ultralightc + tag_desfire } nfc_tag_t; #define FLAG_TAG_DATA_VALID 1 @@ -25,6 +24,9 @@ typedef struct { nfc_tag_t type; uint8_t uid_length; uint8_t uid[10]; + //storage + size_t bytes_available; + size_t granularity; } nfc_tag_info_t; typedef int (*reader_plugin_init)(void); -- cgit v1.2.3