nfc_device_get_uid

Function nfc_device_get_uid 

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

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

The UID length is protocol-dependent. Additionally, a particular protocol might support several UID lengths.

§Arguments

  • instance (direction in) - pointer to the instance to be queried.
  • uid_len (direction out) - pointer to the variable to contain the UID length.

§Returns

pointer to the byte array containing the instance’s UID.