Renesas PTX1xxR IoT-Reader API (non-OS) Version 7.3.1
Renesas Software Stack for IoT-Reader Applications (non-OS)
Data Structures | Macros | Typedefs | Functions
ptxTDC.h File Reference
#include <stdint.h>
#include "ptxStatus.h"
Include dependency graph for ptxTDC.h:

Go to the source code of this file.

Data Structures

struct  ptxTDC_InitParams
 Transparent-Mode Initialization Parameters. More...
 
struct  ptxTDC
 Transparent-Mode Component. More...
 

Macros

#define PTX_TDC_BUFFER_LEN_MASK   (0x3F)
 Transparent-Mode Initialization Parameters.
 
#define PTX_TDC_MAX_BUFFER_LEN   (0x3F)
 
#define PTX_TDC_DEFAULT_TIMEOUT   (20u)
 
#define PTX_TDC_CMD_NFC_FORUM_T2T_WRITE   (0xA2)
 
#define PTX_TDC_CMD_NFC_FORUM_T2T_READ   (0x30)
 
#define PTX_TDC_LEN_NFC_FORUM_T2T_READ   (16u)
 
#define PTX_TDC_CMD_PROP_WRITE   (0xAF)
 
#define PTX_TDC_CMD_PROP_READ   (0x3F)
 
#define PTX_TDC_LEN_PROP_WRITE   (64u)
 
#define PTX_TDC_LEN_PROP_READ   (64u)
 
#define PTX_TDC_PROP_BLOCK_SIZE   (4u)
 
#define PTX_TDC_BLOCK_NUM_POL_BUFF   (48u)
 
#define PTX_TDC_BLOCK_NUM_LIS_BUFF   (64u)
 
#define PTX_TDC_CMD_NSC_DATA_MSG   (0x80)
 

Typedefs

typedef struct ptxTDC_InitParams ptxTDC_InitParams_t
 Transparent-Mode Initialization Parameters.
 
typedef struct ptxTDC ptxTDC_t
 Transparent-Mode Component.
 

Functions

ptxStatus_t ptxTDC_Init (ptxTDC_t *tdcComp, ptxTDC_InitParams_t *initParams)
 Initializes the TDC Component.
 
ptxStatus_t ptxTDC_Deinit (ptxTDC_t *tdcComp)
 Deinitializes the TDC Component.
 
ptxStatus_t ptxTDC_Write (ptxTDC_t *tdcComp, uint8_t *txData, uint8_t txLen, uint32_t ackTimeoutMs)
 Writes messages to the listener's buffer. Customer can choose between NFC Forum compliant write access and proprietary write access (= faster) via compile switch ("TDC_NFC_FORUM_COMPLIANT").
 
ptxStatus_t ptxTDC_Read (ptxTDC_t *tdcComp, uint8_t *rxData, uint8_t *rxDataLen, uint32_t rxTimeoutMs)
 Reads messages from the listener's buffer. Customer can choose between NFC Forum compliant read access and proprietary read access (= faster) via compile switch ("TDC_NFC_FORUM_COMPLIANT").
 
ptxStatus_t ptxTDC_IsReceived (ptxTDC_t *tdcComp, uint8_t *received)
 Checks if the Listener's host MCU has read the previously sent message.
 
ptxStatus_t ptxTDC_ReadT2T (ptxTDC_t *tdcComp, uint8_t block, uint8_t *rxData, uint32_t *rxDataLen)
 Issues a T2T read command over the RF interface.
 
ptxStatus_t ptxTDC_WriteT2T (ptxTDC_t *tdcComp, uint8_t block, uint8_t *txData, uint32_t txLen)
 Issues a T2T write command over the RF interface.
 
ptxStatus_t ptxTDC_ReadProprietary (ptxTDC_t *tdcComp, uint8_t block, uint8_t *rxData, uint32_t *rxDataLen)
 Issues a proprietary read command over the RF interface.
 
ptxStatus_t ptxTDC_WriteProprietary (ptxTDC_t *tdcComp, uint8_t block, uint8_t *txData, uint32_t txLen)
 Issues a proprietary write command over the RF interface.
 

Detailed Description

SPDX-License-Identifier: BSD-3-Clause

Copyright (c) 2026, Renesas Electronics Corporation and/or its affiliates

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Renesas nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY Renesas "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RENESAS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT

OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project : PTX1K Module : Transparent Data Channel (TDC) API File : ptxTDC.h

Description : Dedicated API to use the Renesas-proprietary Transparent Data Channel feature. The TDCI API can be used for Renesas NFC WLC Listener products such as the PTX30W.