Type Alias flipperzero_sys::NfcGenericCallback
source · 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§
enum NfcGenericCallback {
None,
Some(unsafe extern "C" fn(_: NfcGenericEvent, _: *mut c_void) -> u8),
}