diff options
author | cbdev <cb@cbcdn.com> | 2023-06-18 21:10:03 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2023-06-18 21:10:03 +0200 |
commit | de9c58c92c29f9498c9e91a1a1b918261135d31b (patch) | |
tree | e47cf69ee00d0e2d89e6e7810eed7049c67707ad /nfcommander.h | |
parent | 2ebd9db684112ca14d3edfb1c591ac3f90d91e3b (diff) | |
download | nfcommander-de9c58c92c29f9498c9e91a1a1b918261135d31b.tar.gz nfcommander-de9c58c92c29f9498c9e91a1a1b918261135d31b.tar.bz2 nfcommander-de9c58c92c29f9498c9e91a1a1b918261135d31b.zip |
Basic reader interface
Diffstat (limited to 'nfcommander.h')
-rw-r--r-- | nfcommander.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nfcommander.h b/nfcommander.h index 65ca9d2..7990198 100644 --- a/nfcommander.h +++ b/nfcommander.h @@ -7,9 +7,30 @@ #endif typedef enum { + tag_unset, + tag_mifare1, + tag_ntag, + tag_desfire, + tag_ultralight, + tag_ultralightc +} nfc_tag_t; + +typedef struct { + //core identifying properties + nfc_tag_t type; + uint8_t uid_length; + uint8_t uid[10]; +} nfc_tag_info_t; + +typedef int (*reader_plugin_init)(void); +typedef int (*reader_plugin_handle)(int fd); + +typedef enum { system_control, system_reader, system_command } notification_target_t; int core_manage_fd(int fd, int manage, notification_target_t system); +int core_tag_present(nfc_tag_info_t tag); +int core_tag_removed(nfc_tag_info_t tag); |