|
Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
|

Macros | |
| #define | PTX_NSC_LENGTH_MAX (255u) |
| #define | PTX_NSC_HAL_DUMMY_VALUE (0xFFu) |
| Dummy value for padding data. | |
| #define | PTX_NSC_HAL_BUFFER_LENGTH_RX_MAX 256 |
Functions | |
| ptxStatus_t | ptxNSC_NTFProcess (struct ptxNSC *nscCtx, uint8_t *payload, size_t length, ptxNSC_Event_t *event) |
| NTF Dispatcher. | |
| ptxStatus_t | ptxNSC_DataMsgProcess (struct ptxNSC *nscCtx, uint8_t *payload, size_t length, ptxNSC_Event_t *event) |
| NTF Process NSC_DATA_MSG. | |
| ptxStatus_t | ptxNSC_ProcessRspErrorCode (ptxNsc_ErrorCodes_t NscRspErrorCode) |
| Helper function that process ErrorCode in NSC RESPONSE messages. | |
| 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_ProcessNscResetRsp (struct ptxNSC *nscCtx, uint8_t *payload, size_t length) |
| Function used for processing NSC_RESET_RSP. | |
| ptxStatus_t | ptxNSC_NscDataMsg_Send (struct ptxNSC *nscCtx, uint8_t *payload, size_t payloadLength, uint8_t chaining) |
| Function used for sending NSC_DATA_CMD. | |
| ptxStatus_t | ptxNSC_NscDataMsg_SendEmptyData (struct ptxNSC *nscCtx, uint8_t chaining) |
| Function used for sending empty Nsc Data command. | |
| void | ptxNSC_WfNtfClear (struct ptxNSC *nscCtx) |
| Clear Ntf State: set the state of the WfNtf to Not Expected. | |
| 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_Common_Post (struct ptxNSC *nscCtx, ptxIoRq_t *ioCpl, ptxStatus_t ret, pptxIoRqCompletion_t ptxNSCCompletion) |
| ptxStatus_t | ptxNSC_Comon_DataMsgRx (struct ptxNSC *nscCtx, ptxIoRq_t *ioCpl) |
| ptxStatus_t | ptxNSC_CltMsgRx (ptxNSC_t *nscCtx, ptxIoRq_t *ioCpl) |
| #define PTX_NSC_HAL_BUFFER_LENGTH_RX_MAX 256 |
Maximum number of bytes that can be read out in one raw in Read Buffer Command in Uart.
| #define PTX_NSC_LENGTH_MAX (255u) |
Maximum size of NSC_CMD. 256 (Maximun on Uart - 1 Opcode for Write buffer operation)
| ptxStatus_t ptxNSC_DataMsgProcess | ( | struct ptxNSC * | nscCtx, |
| uint8_t * | payload, | ||
| size_t | length, | ||
| ptxNSC_Event_t * | event ) |
NTF Process NSC_DATA_MSG.
| [in] | nscCtx | Pointer to the component structure. |
| [in] | payload | Pointer to the upcoming NSC Command (already allocated). |
| [in] | length | Length of payload. |
| [in] | event | Pointer to the NSC event to fill it (already allocated). |
| ptxStatus_t ptxNSC_NscDataMsg_Send | ( | struct ptxNSC * | nscCtx, |
| uint8_t * | payload, | ||
| size_t | payloadLength, | ||
| uint8_t | chaining ) |
Function used for sending NSC_DATA_CMD.
| [in] | nscCtx | Pointer to the component structure. |
| [in] | payload | Payload to be sent. |
| [in] | payloadLength | Length of payload. |
| [in] | chaining | Is chaining ?. |
| ptxStatus_t ptxNSC_NscDataMsg_SendEmptyData | ( | struct ptxNSC * | nscCtx, |
| uint8_t | chaining ) |
Function used for sending empty Nsc Data command.
| [in] | nscCtx | Pointer to the component structure. |
| [in] | chaining | Is chaining ? |
| ptxStatus_t ptxNSC_NTFProcess | ( | struct ptxNSC * | nscCtx, |
| uint8_t * | payload, | ||
| size_t | length, | ||
| ptxNSC_Event_t * | event ) |
NTF Dispatcher.
This function calls the corresponding function accordingly with the NTF received.
| [in] | nscCtx | Pointer to the component structure. |
| [in] | payload | Pointer to the upcoming NSC Command (already allocated). |
| [in] | length | Length of payload. |
| [in] | event | Pointer to the NSC event to fill it (already allocated). |
| ptxStatus_t ptxNSC_ProcessNscResetRsp | ( | struct ptxNSC * | nscCtx, |
| uint8_t * | payload, | ||
| size_t | length ) |
Function used for processing NSC_RESET_RSP.
| [in] | nscCtx | Pointer to the component structure. |
| [in] | payload | Payload to be processed. |
| [in] | length | Length of payload . |
| ptxStatus_t ptxNSC_ProcessRspErrorCode | ( | ptxNsc_ErrorCodes_t | NscRspErrorCode | ) |
Helper function that process ErrorCode in NSC RESPONSE messages.
| [in] | NscRspErrorCode | Error Code to be processed. |
| void ptxNSC_RfSpecialCasePost | ( | struct ptxNSC * | nscCtx, |
| uint8_t * | buffIn, | ||
| size_t | buffInLen ) |
This is a call Out function (e.g. used as delegation approach).
It checks if RF ERROR or some RF_CNTRL_MSG shall be used to unlock a certain operations in the FIFO thread. This functions is called from NSC thread as Fifo Thread is already locked waiting to be signaled.
| [in] | nscCtx | Pointer to the component structure. |
| [in] | buffIn | Pointer to the buffer containing the NSC Command. |
| [in] | buffInLen | Length of the buffer. |
| 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.
| [in] | nscCtx | Pointer to the component structure. |
| [in] | pPayload | Pointer to the I/O Completion structure. |
| [in] | BufferId | Buffer used to send to the chip. |
| [in] | txLen | Length of pPayload . |
| void ptxNSC_WfNtfClear | ( | struct ptxNSC * | nscCtx | ) |
Clear Ntf State: set the state of the WfNtf to Not Expected.
| [in] | nscCtx | Pointer to the component structure. |