From 2712c7bee486ec889434d30889364ce5e89958ad Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 9 Jul 2023 01:16:37 +0200 Subject: Implement NTAG writing for YHY --- nfcommander.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'nfcommander.h') diff --git a/nfcommander.h b/nfcommander.h index d380f78..4693a42 100644 --- a/nfcommander.h +++ b/nfcommander.h @@ -57,9 +57,13 @@ int core_manage_fd(int fd, int manage, notification_target_t system); * If this API returns TAG_READ_REQUESTED, a full read is requested and the * nfc_tag_info_t should be submitted again with the data fully read. * - * If this API returns TAG_WRITE_REQUESTED, the nfc_tag_into_t has been filled - * with valid data pointers and sizes to be writen to the tag + * If this API returns TAG_WRITE_FULL, the nfc_tag_into_t has been filled + * with valid data pointers and sizes for both the static and dynamic parts + * to be written to the tag + * In the same fashion, if this API returns TAG_WRITE_DYNAMIC, a write for + * only the dynamic section of the tag is requested. */ #define TAG_READ_REQUESTED 1 -#define TAG_WRITE_REQUESTED 2 +#define TAG_WRITE_FULL 2 +#define TAG_WRITE_DYNAMIC 4 int reader_tag_present(uint8_t flags, nfc_tag_info_t* tag); -- cgit v1.2.3