Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
ptxHal_UART.h
Go to the documentation of this file.
1
43#ifndef PTX_HAL_UART_H_
44#define PTX_HAL_UART_H_
45
46/*
47 * ####################################################################################################################
48 * INCLUDES
49 * ####################################################################################################################
50 */
51
52#include <stddef.h>
53#include "ptx_Status.h"
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
59/*
60 * ####################################################################################################################
61 * DEFINES / TYPES
62 * ####################################################################################################################
63 */
64
73struct ptxHal_UART;
74
78typedef struct ptxHal_UART* ptxHal_UART_t;
79
83struct ptxOsal;
84
88struct ptxLog;
89
90
95{
96 uint8_t *DevName;
97 size_t DevNameLen;
98 uint32_t ComSpeedInit;
100 uint32_t WriteTimeout;
101 uint32_t ReadTimeout;
102 struct ptxOsal *OS;
103 struct ptxLog *LOG;
105
106
107/*
108 * ####################################################################################################################
109 * API FUNCTIONS
110 * ####################################################################################################################
111 */
112
124
134
144
157
170
184
195
208ptxStatus_t ptxHal_UartSetFc(ptxHal_UART_t halUart, uint8_t enableFc);
209
219
229
256 uint8_t *txBuf[], size_t txLen[], size_t numBuffers,
257 uint8_t *rxBuf, size_t *rxLen);
258
269
270#ifdef __cplusplus
271}
272#endif
273
276#endif /* Guard */
277
278
uint16_t ptxStatus_t
Status Type.
Definition ptx_Status.h:82
ptxStatus_t ptxHal_UartDTRManual(ptxHal_UART_t halUart, uint8_t enableDTR)
Set the state of the DTR line.
ptxStatus_t ptxHal_UartCancel(ptxHal_UART_t halUart)
Cancel a UART operation.
ptxStatus_t ptxHal_UartSetSpeed(ptxHal_UART_t halUart, uint32_t bdSpeed)
Set the speed attribute for the interface device.
ptxStatus_t ptxHal_UartSetFc(ptxHal_UART_t halUart, uint8_t enableFc)
(Re-) Initialize settings and modify Flow Control for the device.
ptxStatus_t ptxHal_UartTRx(ptxHal_UART_t halUart, uint8_t *txBuf[], size_t txLen[], size_t numBuffers, uint8_t *rxBuf, size_t *rxLen)
Exchange content of multiple buffers via the UART Interface, adding SOF if required.
ptxStatus_t ptxHal_UartClose(ptxHal_UART_t *halUart)
Close the UART device.
ptxStatus_t ptxHal_UartSetTimeout(ptxHal_UART_t halUart, uint32_t msTimeout)
Set the timeout attribute for the interface device.
struct ptxHal_UartInitParam ptxHal_UartInitParam_t
Input parameters to Open Uart Port.
struct ptxHal_UART * ptxHal_UART_t
UART specific data Wrapper Structure - Forward Declaration.
Definition ptxHal_UART.h:78
ptxStatus_t ptxHal_UartOpen(ptxHal_UART_t *halUart, ptxHal_UartInitParam_t *initPars)
Open the UART device.
ptxStatus_t ptxHal_UartClearCancel(ptxHal_UART_t halUart)
Clear Cancel cancel flag for UART operation.
ptxStatus_t ptxHal_UartAddSof(ptxHal_UART_t halUart, uint8_t addSof)
Select whether to add SOF to the frame, if NSC format requires that.
ptxStatus_t ptxHal_UartHandshakeManual(ptxHal_UART_t halUart, uint8_t enableHS)
Set the state of the handshake lines RTS and DTR.
ptxStatus_t ptxHal_UartDiscardData(ptxHal_UART_t halUart)
Discard data currently in the buffers of the UART device.
UART specific data and operational state.
Definition ptxHal_UART_Ext.h:106
Input parameters to Open Uart Port.
Definition ptxHal_UART.h:95
uint8_t * DevName
Definition ptxHal_UART.h:96
uint32_t ReadTimeout
Definition ptxHal_UART.h:101
uint32_t WriteTimeout
Definition ptxHal_UART.h:100
uint32_t ComSpeedInit
Definition ptxHal_UART.h:98
struct ptxLog * LOG
Definition ptxHal_UART.h:103
size_t DevNameLen
Definition ptxHal_UART.h:97
struct ptxOsal * OS
Definition ptxHal_UART.h:102
uint8_t UseHWFlowControl
Definition ptxHal_UART.h:99
Logger Component Structure.
Definition ptxLog.h:208