NfcDeviceSetUid

Type Alias NfcDeviceSetUid 

Source
pub type NfcDeviceSetUid = Option<unsafe extern "C" fn(data: *mut NfcDeviceData, uid: *const u8, uid_len: usize) -> bool>;
Expand description

Set the NFC device’s unique identifier (UID).

The UID length must be supported by the protocol in question.

§Arguments

  • data (direction in, out) - pointer to the instance to be modified.
  • uid (direction in) - pointer to the byte array containing the new UID.
  • uid_len (direction in) - length of the UID.

§Returns

true if the UID was valid and set, false otherwise.

Aliased Type§

pub enum NfcDeviceSetUid {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *const u8, usize) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *const u8, usize) -> bool)

Some value of type T.