nfc_llcp_get_read_result()
Retrieves the LLCP read result.
Synopsis:
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_llcp_get_read_result(nfc_target_t *llcpConnection, uchar_t *buffer, size_t bufferLength, size_t *bytesRead)
Arguments:
- llcpConnection
-
The LLCP connection target.
- buffer
-
The pointer to a preallocated buffer to read into.
- bufferLength
-
The size of the preallocated buffer.
- bytesRead
-
The number of bytes read.
Library:
libnfcDescription:
This function retrieves the LLCP read result.
Returns:
NFC_RESULT_SUCCESS, or one of the following:
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_SERVICE_CONNECTION_ERROR: The application is not connected to the NFC system.
- NFC_RESULT_OUT_OF_MEMORY: The system memory available for the NFC system to complete this operation is insufficient.
- NFC_RESULT_TIMEOUT: A timeout occurred in communicating with the remote peer, or the remote peer has closed the connection.
- NFC_RESULT_NOT_ENOUGH_SPACE: The provided buffer is too small.
- NFC_RESULT_READ_FAILED: There is a data integrity or RF communication error with the remote peer.