flipperzero_sys

Function nfc_device_alloc

Source
pub unsafe extern "C" fn nfc_device_alloc() -> *mut NfcDevice
Expand description

Allocate an NfcDevice instance.

A newly created instance does not hold any data and thus is considered invalid. The most common use case would be to set its data by calling nfc_device_set_data() right afterwards.

ยงReturns

pointer to the allocated instance.