Generic Nfc event type. More...
#include <nfc_generic_event.h>
Data Fields | |
NfcProtocol | protocol |
Protocol identifier of the instance that produced the event. | |
NfcGenericInstance * | instance |
Pointer to the protocol-specific instance that produced the event. | |
NfcGenericEventData * | event_data |
Pointer to the protocol-specific event. | |
Generic Nfc event type.
A generic Nfc event contains a protocol identifier, can be used to determine the remaing fields' type.
If the value of the protocol field is NfcProtocolInvalid, then it means that the event was emitted from an Nfc instance, otherwise it originated from a concrete poller or listener instance.
The event_data field is protocol-specific and should be cast to the appropriate type before use.