Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
Macros | Typedefs | Enumerations | Functions
ptxNSC_Thread.h File Reference
#include "ptx_IoRq.h"
#include "ptxNSC_InterfaceTypes.h"
Include dependency graph for ptxNSC_Thread.h:

Go to the source code of this file.

Macros

#define PTX_NSC_HW_CONTROL_MODE   0x00
 
#define PTX_NSC_HW_PROTOCOL_MODE   0x01
 
#define PTX_NSC_PAUSE_STATE_RUNNING   0x00
 
#define PTX_NSC_PAUSE_STATE_PAUSEDBYAPP   0x01
 
#define PTX_NSC_PAUSE_STATE_PAUSEDBYSTACK   0x02
 
#define PTX_NSC_THREAD_PAUSED_LOCALLY   0x01
 
#define PTX_NSC_THREAD_NOT_PAUSED_LOCALLY   0x00
 
#define PTX_NSC_READ_0_LEN   1
 
#define PTX_NSC_READ_1_LEN   1
 
#define PTX_NSC_READ_1_LEN_POS   0
 
#define PTX_NSC_READ_LEN_ACK   0
 
#define PTX_NSC_READ_LEN_1   1
 

Typedefs

typedef enum ptxNscThread_FrameType ptxNscThread_FrameType_t
 

Enumerations

enum  ptxNscThread_FrameType {
  ptxNscThread_FrameType_UNDEFINED , ptxNscThread_FrameType_RSP , ptxNscThread_FrameType_ACK , ptxNscThread_FrameType_NTF ,
  ptxNscThread_FrameType_MAX
}
 

Functions

ptxStatus_t ptxNsc_ThreadCreate (struct ptxNSC *nscCtx)
 Function used to create NSC thread.
 
ptxStatus_t ptxNsc_ThreadShutdown (struct ptxNSC *nscCtx)
 Function used to shutdown NSC thread.
 
ptxStatus_t ptxNsc_ThreadPause (struct ptxNSC *nscCtx, ptxNSC_Pause_Options pauseMode)
 Function used to pause and resume the NSC thread.
 
ptxStatus_t ptxNsc_Thread_ProcessNsc (struct ptxNSC *nscCtx, ptxBufferPool_Item_t *bufferItem)
 Entry point for processing a message received.
 
ptxStatus_t ptxNSC_WaitGetRspBuffer (struct ptxNSC *nscCtx, ptxIoRq_t *ioRqItem, ptxBufferPool_Item_t **bufferItem)
 Function used at completion path to get the buffer linked to the IoRq Object.
 
ptxStatus_t ptxNSC_WaitGetRspBuffer_NotIoRq (struct ptxNSC *nscCtx, ptxBufferPool_Item_t **bufferItem)
 Function used at completion path to get the buffer set it through NSC Component.
 

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_Thread.h

Description :