113typedef const uint8_t* (*NfcDeviceGetUid)(
const NfcDeviceData* data,
size_t* uid_len);
Common top-level types for the NFC protocol stack.
NfcDeviceNameType
Verbosity level of the displayed NFC device name.
Definition nfc_device_base.h:14
void NfcDeviceData
Generic opaque type for protocol-specific NFC device data.
Definition nfc_device_base.h:22
bool(* NfcDeviceSave)(const NfcDeviceData *data, FlipperFormat *ff)
Save NFC device data to a FlipperFormat file.
Definition nfc_device_base_i.h:81
void(* NfcDeviceCopy)(NfcDeviceData *data, const NfcDeviceData *other)
Copy source instance's data into the destination so that they become equal.
Definition nfc_device_base_i.h:48
const char *(* NfcDeviceGetName)(const NfcDeviceData *data, NfcDeviceNameType name_type)
Get a protocol-specific stateful NFC device name.
Definition nfc_device_base_i.h:101
bool(* NfcDeviceSetUid)(NfcDeviceData *data, const uint8_t *uid, size_t uid_len)
Set the NFC device's unique identifier (UID).
Definition nfc_device_base_i.h:125
bool(* NfcDeviceLoad)(NfcDeviceData *data, FlipperFormat *ff, uint32_t version)
Load NFC device data from a FlipperFormat file.
Definition nfc_device_base_i.h:70
const uint8_t *(* NfcDeviceGetUid)(const NfcDeviceData *data, size_t *uid_len)
Get the NFC device's unique identifier (UID).
Definition nfc_device_base_i.h:113
bool(* NfcDeviceEqual)(const NfcDeviceData *data, const NfcDeviceData *other)
Compare two NFC device data instances.
Definition nfc_device_base_i.h:90
NfcDeviceData *(* NfcDeviceGetBaseData)(const NfcDeviceData *data)
Get the NFC device data associated with the parent protocol.
Definition nfc_device_base_i.h:135
bool(* NfcDeviceVerify)(NfcDeviceData *data, const FuriString *device_type)
Deprecated.
Definition nfc_device_base_i.h:58
void(* NfcDeviceFree)(NfcDeviceData *data)
Delete the protocol-specific NFC device data instance.
Definition nfc_device_base_i.h:30
void(* NfcDeviceReset)(NfcDeviceData *data)
Reset the NFC device data instance.
Definition nfc_device_base_i.h:40
NfcDeviceData *(* NfcDeviceAlloc)(void)
Allocate the protocol-specific NFC device data instance.
Definition nfc_device_base_i.h:23
Generic NFC device interface.
Definition nfc_device_base_i.h:142
NfcDeviceEqual is_equal
Pointer to the is_equal() function.
Definition nfc_device_base_i.h:152
NfcDeviceFree free
Pointer to the free() function.
Definition nfc_device_base_i.h:146
NfcDeviceCopy copy
Pointer to the copy() function.
Definition nfc_device_base_i.h:148
const char * protocol_name
Pointer to a statically-allocated string with the protocol name.
Definition nfc_device_base_i.h:144
NfcDeviceGetUid get_uid
Pointer to the get_uid() function.
Definition nfc_device_base_i.h:154
NfcDeviceSave save
Pointer to the save() function.
Definition nfc_device_base_i.h:151
NfcDeviceVerify verify
Deprecated.
Definition nfc_device_base_i.h:149
NfcDeviceGetBaseData get_base_data
Pointer to the get_base_data() function.
Definition nfc_device_base_i.h:156
NfcDeviceSetUid set_uid
Pointer to the set_uid() function.
Definition nfc_device_base_i.h:155
NfcDeviceLoad load
Pointer to the load() function.
Definition nfc_device_base_i.h:150
NfcDeviceGetName get_name
Pointer to the get_name() function.
Definition nfc_device_base_i.h:153
NfcDeviceReset reset
Pointer to the reset() function.
Definition nfc_device_base_i.h:147
NfcDeviceAlloc alloc
Pointer to the alloc() function.
Definition nfc_device_base_i.h:145