flipperzero_sys

Function nfc_device_set_data

Source
pub unsafe extern "C" fn nfc_device_set_data(
    instance: *mut NfcDevice,
    protocol: NfcProtocol,
    protocol_data: *const NfcDeviceData,
)
Expand description

Set the data and protocol of an NfcDevice instance.

Any data previously contained in the instance will be deleted.

§Arguments

  • instance (direction in, out) - pointer to the instance to be modified.
  • protocol (direction in) - numeric identifier of the data’s protocol.
  • protocol_data (direction in) - pointer to the protocol-specific data.