NfcEventCallback

Type Alias 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§

pub enum NfcEventCallback {
    None,
    Some(unsafe extern "C" fn(NfcEvent, *mut c_void) -> NfcCommand),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(NfcEvent, *mut c_void) -> NfcCommand)

Some value of type T.