Loading...
Searching...
No Matches
nfc_listener.h
Go to the documentation of this file.
1
16#pragma once
17
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
28typedef struct NfcListener NfcListener;
29
40NfcListener* nfc_listener_alloc(Nfc* nfc, NfcProtocol protocol, const NfcDeviceData* data);
41
47void nfc_listener_free(NfcListener* instance);
48
60void nfc_listener_start(NfcListener* instance, NfcGenericCallback callback, void* context);
61
69void nfc_listener_stop(NfcListener* instance);
70
78
90const NfcDeviceData* nfc_listener_get_data(const NfcListener* instance, NfcProtocol protocol);
91
92#ifdef __cplusplus
93}
94#endif
Common top-level types for the NFC protocol stack.
void NfcDeviceData
Generic opaque type for protocol-specific NFC device data.
Definition nfc_device_base.h:22
Generic Nfc stack event definitions.
NfcCommand(* NfcGenericCallback)(NfcGenericEvent event, void *context)
Generic Nfc event callback type.
Definition nfc_generic_event.h:75
void nfc_listener_stop(NfcListener *instance)
Stop an NfcListener instance.
Definition nfc_listener.c:126
void nfc_listener_start(NfcListener *instance, NfcGenericCallback callback, void *context)
Start an NfcListener instance.
Definition nfc_listener.c:118
NfcListener * nfc_listener_alloc(Nfc *nfc, NfcProtocol protocol, const NfcDeviceData *data)
Allocate an NfcListener instance.
Definition nfc_listener.c:75
const NfcDeviceData * nfc_listener_get_data(const NfcListener *instance, NfcProtocol protocol)
Get the data that was that was provided for emulation.
Definition nfc_listener.c:138
NfcProtocol nfc_listener_get_protocol(const NfcListener *instance)
Get the protocol identifier an NfcListener instance was created with.
Definition nfc_listener.c:132
void nfc_listener_free(NfcListener *instance)
Delete an NfcListener instance.
Definition nfc_listener.c:91
NfcProtocol
Enumeration of all available NFC protocols.
Definition nfc_protocol.h:178
Definition nfc.c:41
Definition nfc_listener.c:20