pub type NfcGenericCallback = Option<unsafe extern "C" fn(event: NfcGenericEvent, context: *mut c_void) -> NfcCommand>;Expand description
Generic Nfc event callback type.
A function of this type must be passed as the callback parameter upon start of a poller, listener or Nfc instance.
§Arguments
[in]- event Nfc generic event, passed by value, complete with protocol type and data.[in,out]- context pointer to the user-specific context (set when starting a poller/listener instance).
§Returns
the command which the event producer must execute.
Aliased Type§
pub enum NfcGenericCallback {
None,
Some(unsafe extern "C" fn(NfcGenericEvent, *mut c_void) -> NfcCommand),
}Variants§
None
No value.
Some(unsafe extern "C" fn(NfcGenericEvent, *mut c_void) -> NfcCommand)
Some value of type T.