nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nfc_platform_buffer_alloc()

uint8_t * nfc_platform_buffer_alloc ( size_t size)

#include <nfc/include/nfc_platform.h>

Allocate buffer for NFC data exchange.

This function allocates a buffer that is used directly by the NFCT peripheral. You might need to allocate buffer within defined memory addresses that are accessible by the EasyDMA NFCT peripheral utility. Refer to the product specification for more details.

The buffer size varies for different NFC tag types:

The allocated buffer for NFC Type 4 Tag has separate areas for TX (transmit) and RX (receive) data. Therefore, the required size is doubled.

Parameters
[in]sizeSize of the requested buffer in bytes.
Return values
Addressof allocated buffer if successful, otherwise NULL.