summaryrefslogtreecommitdiff
path: root/nfcommander.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2023-07-09 01:16:37 +0200
committercbdev <cb@cbcdn.com>2023-07-09 01:16:37 +0200
commit2712c7bee486ec889434d30889364ce5e89958ad (patch)
tree4640961e9957a4f1715ce2f15df7a2a37c134dd0 /nfcommander.h
parent24c97f5b1fe1b666a3c53e8d36b0bea0ede307e0 (diff)
downloadnfcommander-2712c7bee486ec889434d30889364ce5e89958ad.tar.gz
nfcommander-2712c7bee486ec889434d30889364ce5e89958ad.tar.bz2
nfcommander-2712c7bee486ec889434d30889364ce5e89958ad.zip
Implement NTAG writing for YHY
Diffstat (limited to 'nfcommander.h')
-rw-r--r--nfcommander.h10
1 files changed, 7 insertions, 3 deletions
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);