Renesas PTX1xxR IoT-Reader API (non-OS) Version 7.3.1
Renesas Software Stack for IoT-Reader Applications (non-OS)
Macros | Typedefs | Enumerations | Functions
ptxNSC_Hal.h File Reference
#include "ptxStatus.h"
#include <stddef.h>
Include dependency graph for ptxNSC_Hal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PTX_HAL_WRITE_TIMEOUT   (500u)
 
#define PTX_HAL_READ_TIMEOUT   (500u)
 
#define PTX_NSC_RESPONSE_TIMEOUT   (uint32_t)(20 * PTX_HAL_READ_TIMEOUT)
 
#define PTX_NSC_HAL_ADDRESS_LENGTH   (0x02u)
 
#define PTX_NSC_HAL_BUFFER_LENGTH_RX_MAX   (256u)
 
#define PTX_NSC_HAL_DUMMY_VALUE   (0xFFu)
 
#define PTX_NSC_LENGTH_MAX   (255u)
 
#define PTX_NSC_HAL_PAYLOAD_LENGTH_WI_MAX   (252u)
 
#define PTX_NSC_HAL_WRITE_INSTRUCTION_MASK   (0x04u)
 
#define PTX_NSC_HAL_WRITE_RANDOM_ADDRESS_MASK   (0x05u)
 
#define PTX_NSC_HAL_READ_BUFFER_MASK   (0x03u)
 
#define PTX_NSC_HAL_WRITE_BUFFER_MASK   (0x07u)
 
#define PTX_NSC_HAL_READ_RANDOM_ADDRESS_MASK   (0x01u)
 
#define PTX_NSC_HAL_READ_CONTINUOUS_ADDRESS_MASK   (0x02u)
 
#define PTX_NSC_HAL_WRITE_CONTINUOUS_ADDRESS_MASK   (0x06u)
 
#define PTX_NSC_HAL_BUFFER_ADDRESS_MASK   (0x1Fu)
 

Typedefs

typedef enum ptxNscHal_BufferId ptxNscHal_BufferId_t
 ID of buffers handled by Hardware.
 

Enumerations

enum  ptxNscHal_BufferId {
  NscWriteBuffer_0 , NscWriteBuffer_1 , NscWriteBuffer_2 , NscWriteBuffer_3 ,
  NscWriteBuffer_4 , NscWriteBuffer_5 , NscWriteBuffer_6 , NscWriteBuffer_7 ,
  NscWriteBuffer_8 , NscWriteBuffer_9 , NscWriteBuffer_10 , NscWriteBuffer_11 ,
  NscWriteBuffer_12 , NscWriteBuffer_13 , NscWriteBuffer_14 , NscWriteBuffer_15 ,
  NscWriteBuffer_Max
}
 ID of buffers handled by Hardware.
 

Functions

ptxStatus_t ptxNSC_HAL_WriteBuffer (struct ptxNSC *nscCtx, ptxNscHal_BufferId_t bufferId, uint8_t *txBuf[], size_t txLen[], size_t numBuffers)
 Internal command to exchange NSC-commands using buffers.
 
ptxStatus_t ptxNSC_HAL_Wra (struct ptxNSC *nscCtx, uint16_t address, uint8_t value)
 Internal command to write certain SFRs.
 
ptxStatus_t ptxNSC_HAL_Wra_NoWait (struct ptxNSC *nscCtx, uint16_t address, uint8_t value)
 Internal command to write certain SFRs (operating-mode dependent).
 
ptxStatus_t ptxNSC_HAL_Wra_NoCheck (struct ptxNSC *nscCtx, uint16_t address, uint8_t value)
 Internal command to write certain SFRs (operating-mode dependent).
 
ptxStatus_t ptxNSC_HAL_Rra (struct ptxNSC *nscCtx, uint16_t address, uint8_t *value)
 Internal command to read certain SFRs.
 
ptxStatus_t ptxNSC_HAL_WriteInstruction (struct ptxNSC *nscCtx, uint16_t address, uint8_t *pPayload, size_t txLen)
 Internal command to write NSC-instructions.
 

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 : NSC File : ptxNSC_Hal.h

Description :