Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
ptxNSC_Thread.h
Go to the documentation of this file.
1
43#ifndef PTXNSC_THREAD_H
44#define PTXNSC_THREAD_H
45
52/*
53 * ####################################################################################################################
54 * INCLUDES
55 * ####################################################################################################################
56 */
57
58#include "ptx_IoRq.h"
60
61#ifdef __cplusplus
62extern "C" {
63#endif
64
65/*
66 * ####################################################################################################################
67 * DEFINES / TYPES / INTERNALS
68 * ####################################################################################################################
69 */
70
71#define PTX_NSC_HW_CONTROL_MODE 0x00
72#define PTX_NSC_HW_PROTOCOL_MODE 0x01
74#define PTX_NSC_PAUSE_STATE_RUNNING 0x00
75#define PTX_NSC_PAUSE_STATE_PAUSEDBYAPP 0x01
76#define PTX_NSC_PAUSE_STATE_PAUSEDBYSTACK 0x02
78#define PTX_NSC_THREAD_PAUSED_LOCALLY 0x01
79#define PTX_NSC_THREAD_NOT_PAUSED_LOCALLY 0x00
81#define PTX_NSC_READ_0_LEN 1
82#define PTX_NSC_READ_1_LEN 1
83#define PTX_NSC_READ_1_LEN_POS 0
85#define PTX_NSC_READ_LEN_ACK 0
86#define PTX_NSC_READ_LEN_1 1
88/*
89 * Forward declaration
90 */
91struct ptxNSC;
92
97typedef enum ptxNscThread_FrameType
98{
99 ptxNscThread_FrameType_UNDEFINED,
100 ptxNscThread_FrameType_RSP,
101 ptxNscThread_FrameType_ACK,
102 ptxNscThread_FrameType_NTF,
103 /* */
104 ptxNscThread_FrameType_MAX
105} ptxNscThread_FrameType_t;
106
107
108/*
109 * ####################################################################################################################
110 * API FUNCTIONS
111 * ####################################################################################################################
112 */
113
122
131
141
151
162
172
173#ifdef __cplusplus
174}
175#endif
176
179#endif /* Guard */
180
181
ptxStatus_t ptxNsc_ThreadPause(struct ptxNSC *nscCtx, ptxNSC_Pause_Options pauseMode)
Function used to pause and resume the NSC thread.
ptxStatus_t ptxNsc_ThreadShutdown(struct ptxNSC *nscCtx)
Function used to shutdown NSC thread.
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_Thread_ProcessNsc(struct ptxNSC *nscCtx, ptxBufferPool_Item_t *bufferItem)
Entry point for processing a message received.
ptxStatus_t ptxNsc_ThreadCreate(struct ptxNSC *nscCtx)
Function used to create NSC thread.
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.
ptxNSC_Pause_Options
NSC Pause Options. .
Definition ptxNSC_InterfaceTypes.h:329
uint16_t ptxStatus_t
Status Type.
Definition ptx_Status.h:82
Buffer Pool Item structure.
Definition ptxBufferPool.h:114
I/O Request structure.
Definition ptx_IoRq.h:154
Definition ptxNSC_Interface.h:152