|
| ptxStatus_t | ptxHal_UartOpen (ptxHal_UART_t *halUart, ptxHal_UartInitParam_t *initPars) |
| | Open the UART device.
|
| |
| ptxStatus_t | ptxHal_UartClose (ptxHal_UART_t *halUart) |
| | Close the UART device.
|
| |
| ptxStatus_t | ptxHal_UartDiscardData (ptxHal_UART_t halUart) |
| | Discard data currently in the buffers of the UART device.
|
| |
| ptxStatus_t | ptxHal_UartSetTimeout (ptxHal_UART_t halUart, uint32_t msTimeout) |
| | Set the timeout attribute for the interface device.
|
| |
| ptxStatus_t | ptxHal_UartSetSpeed (ptxHal_UART_t halUart, uint32_t bdSpeed) |
| | Set the speed attribute for the interface device.
|
| |
| ptxStatus_t | ptxHal_UartHandshakeManual (ptxHal_UART_t halUart, uint8_t enableHS) |
| | Set the state of the handshake lines RTS and DTR.
|
| |
| 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_UartSetFc (ptxHal_UART_t halUart, uint8_t enableFc) |
| | (Re-) Initialize settings and modify Flow Control for the device.
|
| |
| ptxStatus_t | ptxHal_UartCancel (ptxHal_UART_t halUart) |
| | Cancel a UART operation.
|
| |
| ptxStatus_t | ptxHal_UartClearCancel (ptxHal_UART_t halUart) |
| | Clear Cancel cancel flag for UART operation.
|
| |
| 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_UartDTRManual (ptxHal_UART_t halUart, uint8_t enableDTR) |
| | Set the state of the DTR line.
|
| |
| 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.
Sends the content of multiple buffers and prepends SOF, if set in the transmission parameter field of the component. In an implementation-specific way, the function concatenates sending of content of multiple buffers. The implementation is hardware-specific, but the interface is done such that the underlying code can be tweaked for maximum performance (e.g. Gather-DMA on some embedded systems, of just multi-send on others).
- Parameters
-
| [in] | halUart | Pointer to a UART-specific structure. |
| [in] | txBuf | Array of pointers to buffers with data to write. |
| [in] | txLen | Array of Number of bytes in the respective buffer. |
| [in] | numBuffers | Number of buffers whose data to transmit. |
| [in] | rxBuf | Pointer to a buffer with data to write. |
| [in] | rxLen | Pointer to a variable providing the maximum number of bytes to read and receiving the actual number of bytes read. |
- Note
- If txBuf or txLen are NULL, then only receive operation is performed (if rx buffer and length are not NULL). For transmitting: individual buffers may be NULL or the length of individual buffers may be zero. It is required however that the total number of bytes to transfer is greater than zero and within the range the length field of the NSC-specific frame can transfer.
- Returns
- Status, indicating whether the operation was successful. See ptxStatus_t.