Type Alias flipperzero_sys::NfcEventCallback

source ·
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),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: NfcEvent, _: *mut c_void) -> u8)

Some value of type T.