43#ifndef PTXNSC_THREAD_H
44#define PTXNSC_THREAD_H
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
97typedef enum ptxNscThread_FrameType
99 ptxNscThread_FrameType_UNDEFINED,
100 ptxNscThread_FrameType_RSP,
101 ptxNscThread_FrameType_ACK,
102 ptxNscThread_FrameType_NTF,
104 ptxNscThread_FrameType_MAX
105} ptxNscThread_FrameType_t;
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