nrfxlib API 0.1.0
|
int nfc_t2t_parameter_get | ( | nfc_t2t_param_id_t | id, |
void * | data, | ||
size_t * | max_data_length | ||
) |
#include <nfc/include/nfc_t2t_lib.h>
Query an NFC parameter value.
The queried value will be placed into the passed data buffer. If the buffer is too small, max_data_length will contain the required buffer size. If the buffer is big enough, max_data_length will contain the actual size of the data.
id | ID of the parameter to query. |
data | Pointer to a buffer receiving the queried data. |
max_data_length | Size of the buffer, receives actual size of queried data. |
0 | Success. |
-NRF_EINVAL | Invalid argument (e.g. wrong data length, NULL pointer). |