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