2024-01-09 04:09 AM
I need to write a specific string to the ST25 tag, but I don't see the use of NFC07A1_NFCTAG_WriteData. What should I do so that the string is written to the tag's address correctly and can be read by NFC?
/**
* @brief Writes data in the nfctag at specific address
* @PAram pData : pointer to the data to write
* @PAram TarAddr : I2C data memory address to write
* @PAram Size : Size in bytes of the value to be written
* @retval NFCTAG enum status
*/
int32_t NFC07A1_NFCTAG_WriteData( uint32_t Instance, const uint8_t * const pData, const uint16_t TarAddr, const uint16_t Size )
{
UNUSED(Instance);
if ( Nfctag_Drv->WriteData == NULL )
{
return NFCTAG_ERROR;
}
return Nfctag_Drv->WriteData(&NfcTagObj, pData, TarAddr, Size );
}