Loading...
Searching...
No Matches
iso14443_4b.h
1#pragma once
2
3#include <nfc/protocols/iso14443_3b/iso14443_3b.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef enum {
10 Iso14443_4bErrorNone,
11 Iso14443_4bErrorNotPresent,
12 Iso14443_4bErrorProtocol,
13 Iso14443_4bErrorTimeout,
14} Iso14443_4bError;
15
16typedef struct Iso14443_4bData Iso14443_4bData;
17
18// Virtual methods
19
20Iso14443_4bData* iso14443_4b_alloc(void);
21
22void iso14443_4b_free(Iso14443_4bData* data);
23
24void iso14443_4b_reset(Iso14443_4bData* data);
25
26void iso14443_4b_copy(Iso14443_4bData* data, const Iso14443_4bData* other);
27
28bool iso14443_4b_verify(Iso14443_4bData* data, const FuriString* device_type);
29
30bool iso14443_4b_load(Iso14443_4bData* data, FlipperFormat* ff, uint32_t version);
31
32bool iso14443_4b_save(const Iso14443_4bData* data, FlipperFormat* ff);
33
34bool iso14443_4b_is_equal(const Iso14443_4bData* data, const Iso14443_4bData* other);
35
36const char* iso14443_4b_get_device_name(const Iso14443_4bData* data, NfcDeviceNameType name_type);
37
38const uint8_t* iso14443_4b_get_uid(const Iso14443_4bData* data, size_t* uid_len);
39
40bool iso14443_4b_set_uid(Iso14443_4bData* data, const uint8_t* uid, size_t uid_len);
41
42Iso14443_3bData* iso14443_4b_get_base_data(const Iso14443_4bData* data);
43
44#ifdef __cplusplus
45}
46#endif
NfcDeviceNameType
Verbosity level of the displayed NFC device name.
Definition nfc_device_base.h:14
Definition flipper_format.c:12
Definition string.c:4
Definition iso14443_3b_i.h:33
Definition iso14443_4b_i.h:5