Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
ptxNSC.h
Go to the documentation of this file.
1
44#ifndef PTXNSC_H_
45#define PTXNSC_H_
46
47
48/*
49 * ####################################################################################################################
50 * INCLUDES
51 * ####################################################################################################################
52 */
53
54#include <stdint.h>
55#include "ptx_Status.h"
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
68/*
69 * ####################################################################################################################
70 * DEFINES / TYPES
71 * ####################################################################################################################
72 */
73
74/*
75 * Forward declaration.
76 */
77struct ptxNSC;
78
79
80/*
81 * ####################################################################################################################
82 * API FUNCTIONS
83 * ####################################################################################################################
84 */
85
99ptxStatus_t ptxNSC_NTFProcess(struct ptxNSC *nscCtx, uint8_t *payload, size_t length, ptxNSC_Event_t *event);
100
112ptxStatus_t ptxNSC_DataMsgProcess(struct ptxNSC *nscCtx, uint8_t *payload, size_t length, ptxNSC_Event_t *event);
113
123
135ptxStatus_t ptxNSC_SendCommand (struct ptxNSC *nscCtx, uint8_t *pPayload, ptxNscWriteBufferId_t BufferId, size_t txLen);
136
147ptxStatus_t ptxNSC_ProcessNscResetRsp(struct ptxNSC *nscCtx, uint8_t *payload, size_t length);
148
160ptxStatus_t ptxNSC_NscDataMsg_Send(struct ptxNSC *nscCtx, uint8_t *payload, size_t payloadLength, uint8_t chaining);
161
171ptxStatus_t ptxNSC_NscDataMsg_SendEmptyData (struct ptxNSC *nscCtx, uint8_t chaining);
172
179void ptxNSC_WfNtfClear (struct ptxNSC *nscCtx);
180
192void ptxNSC_RfSpecialCasePost (struct ptxNSC *nscCtx, uint8_t *buffIn, size_t buffInLen);
193
196#ifdef __cplusplus
197}
198#endif
199
200#endif /* Guard */
201
ptxStatus_t ptxNSC_SendCommand(struct ptxNSC *nscCtx, uint8_t *pPayload, ptxNscWriteBufferId_t BufferId, size_t txLen)
Function used to send NSC Command to the chip.
ptxStatus_t ptxNSC_NTFProcess(struct ptxNSC *nscCtx, uint8_t *payload, size_t length, ptxNSC_Event_t *event)
NTF Dispatcher.
void ptxNSC_WfNtfClear(struct ptxNSC *nscCtx)
Clear Ntf State: set the state of the WfNtf to Not Expected.
ptxStatus_t ptxNSC_ProcessNscResetRsp(struct ptxNSC *nscCtx, uint8_t *payload, size_t length)
Function used for processing NSC_RESET_RSP.
ptxStatus_t ptxNSC_NscDataMsg_SendEmptyData(struct ptxNSC *nscCtx, uint8_t chaining)
Function used for sending empty Nsc Data command.
ptxStatus_t ptxNSC_NscDataMsg_Send(struct ptxNSC *nscCtx, uint8_t *payload, size_t payloadLength, uint8_t chaining)
Function used for sending NSC_DATA_CMD.
void ptxNSC_RfSpecialCasePost(struct ptxNSC *nscCtx, uint8_t *buffIn, size_t buffInLen)
This is a call Out function (e.g. used as delegation approach).
ptxStatus_t ptxNSC_ProcessRspErrorCode(ptxNsc_ErrorCodes_t NscRspErrorCode)
Helper function that process ErrorCode in NSC RESPONSE messages.
ptxStatus_t ptxNSC_DataMsgProcess(struct ptxNSC *nscCtx, uint8_t *payload, size_t length, ptxNSC_Event_t *event)
NTF Process NSC_DATA_MSG.
enum ptxNscWriteBufferId ptxNscWriteBufferId_t
ID of potential buffers handled by Hardware.
enum ptxNsc_ErrorCodes ptxNsc_ErrorCodes_t
NSC error codes.
uint16_t ptxStatus_t
Status Type.
Definition ptx_Status.h:82
NSC Event data. Used to notify layer above, what kind of event had happened on the NSC Component.
Definition ptxNSC_InterfaceTypes.h:309
Definition ptxNSC_Interface.h:152