nfc_device_set_uid

Function nfc_device_set_uid 

Source
pub unsafe extern "C" fn nfc_device_set_uid(
    instance: *mut NfcDevice,
    uid: *const u8,
    uid_len: usize,
) -> bool
Expand description

Set the unique identifier (UID) of an NfcDevice instance.

The UID length must be supported by the instance’s protocol.

§Arguments

  • instance (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.