Abstract interface for managing NFC device data.
void(* NfcLoadingCallback)(void *context, bool state)
Loading callback function signature.
Definition nfc_device.h:40
void NfcDeviceData
Generic opaque type for protocol-specific NFC device data.
Definition nfc_device_base.h:22
NfcDeviceData * nfc_device_get_data_ptr(const NfcDevice *instance, NfcProtocol protocol)
Get the mutable (non-const) data from an NfcDevice instance.
Definition nfc_device_i.c:22
NfcProtocol
Enumeration of all available NFC protocols.
Definition nfc_protocol.h:178
NfcDevice structure definition.
Definition nfc_device_i.h:19
NfcDeviceData * protocol_data
Pointer to the NFC device data.
Definition nfc_device_i.h:21
NfcProtocol protocol
Numeric identifier of the data's protocol.
Definition nfc_device_i.h:20
void * loading_callback_context
Pointer to the context to be passed to the loading callback.
Definition nfc_device_i.h:25
NfcLoadingCallback loading_callback
Pointer to the function to be called upon loading completion.
Definition nfc_device_i.h:24