NfcScannerCallback

Type Alias NfcScannerCallback 

Source
pub type NfcScannerCallback = Option<unsafe extern "C" fn(event: NfcScannerEvent, context: *mut c_void)>;
Expand description

User callback function signature.

A function with such signature must be provided by the user upon calling nfc_scanner_start().

§Arguments

  • event (direction in) - occurred event, complete with type and data.
  • context (direction in) - pointer to the context data provided in nfc_scanner_start() call.

Aliased Type§

pub enum NfcScannerCallback {
    None,
    Some(unsafe extern "C" fn(NfcScannerEvent, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(NfcScannerEvent, *mut c_void))

Some value of type T.