Flipper Zero Firmware
Loading...
Searching...
No Matches
nfc_device_i.h File Reference

NfcDevice private types and definitions. More...

#include "nfc_device.h"

Go to the source code of this file.

Data Structures

struct  NfcDevice
 NfcDevice structure definition. More...
 

Functions

NfcDeviceDatanfc_device_get_data_ptr (const NfcDevice *instance, NfcProtocol protocol)
 Get the mutable (non-const) data from an NfcDevice instance.
 

Detailed Description

NfcDevice private types and definitions.

This file is an implementation detail. It must not be included in any public API-related headers.

Function Documentation

◆ nfc_device_get_data_ptr()

NfcDeviceData * nfc_device_get_data_ptr ( const NfcDevice * instance,
NfcProtocol protocol )

Get the mutable (non-const) data from an NfcDevice instance.

The behaviour is the same as with nfc_device_get_data(), but the return pointer is non-const, allowing for changing data it is pointing to.

See also
nfc_device.h

Under the hood, nfc_device_get_data() calls this and then adds const-ness to the return value.

Parameters
instancepointer to the instance to be queried
protocolprotocol identifier of the data to be retrieved.
Returns
pointer to the instance's (mutable) data.