Hi,
API from rfal_st25xv module have been designed before the introduction of ST25TV512C and ST25TV02KC devices. ST25TV512C and ST25TV02KC devices have introduced a compatibility change (PID/FID) in Read Configuration and Write Configuration commands. Thus, rfalST25xVPollerReadConfiguration cannot be used with those device.
2 new API have been introduced in the attached files for ST25TV512C and ST25TV02KC devices:
- rfalST25TV512CPollerReadConfiguration
- rfalST25TV512CPollerWriteConfiguration
Example code
/* Read UID register ReadConfiguration @(FID=FEh, PID=01h) */
err = rfalST25TV512CPollerReadConfiguration(reqFlag, uid, 0xFE, 0x01, rxBuf, sizeof(rxBuf), &rcvLen);
/* rxBuf contains the response_flags at position 0 followed by the data */
/* rxBuf size should be enough to store i/ the response flags ii/ the data and iii/ the CRC */
platformLog(" rfalST25TV512CPollerReadConfiguration: %s %s\r\n", (err != RFAL_ERR_NONE) ? "FAIL": "OK Data:", (err != RFAL_ERR_NONE) ? "" : hex2Str( &rxBuf[1], rcvLen - 1));
Rgds
BT