Holder of common helper functions for the UART driver.
============================================================================
Go to the source code of this file.
Functions | |
void | UART2Support_disableRx (UART2_HWAttrs const *hwAttrs) |
Function to disable the receive and receive interrupts. More... | |
void | UART2Support_disableTx (UART2_HWAttrs const *hwAttrs) |
Function to disable the transmit interrupt. More... | |
void | UART2Support_dmaRefreshRx (UART2_Handle handle) |
Function to update RX ring buffer state. More... | |
void | UART2Support_dmaStartRx (UART2_Handle handle) |
Function to configure the receive DMA. More... | |
void | UART2Support_dmaStartTx (UART2_Handle handle) |
Function to configure the tramsit DMA. More... | |
void | UART2Support_dmaStopRx (UART2_Handle handle) |
Function to disable the RX DMA. More... | |
uint32_t | UART2Support_dmaStopTx (UART2_Handle handle) |
Function to disable the TX DMA. More... | |
void | UART2Support_enableInts (UART2_Handle handle) |
Function to enable receive, receive timeout, and error interrupts. More... | |
void | UART2Support_enableRx (UART2_HWAttrs const *hwAttrs) |
Function to enable the receive. More... | |
void | UART2Support_enableTx (UART2_HWAttrs const *hwAttrs) |
Function to enable the transmit interrupt. More... | |
void | UART2Support_powerSetConstraint (void) |
Function to set power constraint. More... | |
void | UART2Support_powerRelConstraint (void) |
Function to release power constraint. More... | |
int_fast16_t | UART2Support_rxStatus2ErrorCode (uint32_t errorData) |
Function to convert RX error status to a UART2 error code. More... | |
uint32_t | UART2Support_sendData (UART2_HWAttrs const *hwAttrs, size_t size, uint8_t *buf) |
Function to send data. More... | |
bool | UART2Support_txDone (UART2_HWAttrs const *hwAttrs) |
Function to determine if TX is in progress. More... | |
int | UART2Support_uartRxError (UART2_HWAttrs const *hwAttrs) |
Function to clear receive errors. More... | |
void UART2Support_disableRx | ( | UART2_HWAttrs const * | hwAttrs | ) |
Function to disable the receive and receive interrupts.
[in] | hwAttrs | A pointer to a UART2_HWAttrs structure |
void UART2Support_disableTx | ( | UART2_HWAttrs const * | hwAttrs | ) |
Function to disable the transmit interrupt.
[in] | hwAttrs | A pointer to a UART2_HWAttrs structure |
void UART2Support_dmaRefreshRx | ( | UART2_Handle | handle | ) |
Function to update RX ring buffer state.
[in] | handle | A UART2_Handle returned from UART2_open() |
void UART2Support_dmaStartRx | ( | UART2_Handle | handle | ) |
Function to configure the receive DMA.
[in] | handle | A UART2_Handle returned from UART2_open() |
void UART2Support_dmaStartTx | ( | UART2_Handle | handle | ) |
Function to configure the tramsit DMA.
[in] | handle | A UART2_Handle returned from UART2_open() |
void UART2Support_dmaStopRx | ( | UART2_Handle | handle | ) |
Function to disable the RX DMA.
[in] | handle | A UART2_Handle returned from UART2_open() |
uint32_t UART2Support_dmaStopTx | ( | UART2_Handle | handle | ) |
Function to disable the TX DMA.
[in] | handle | A UART2_Handle returned from UART2_open() |
void UART2Support_enableInts | ( | UART2_Handle | handle | ) |
Function to enable receive, receive timeout, and error interrupts.
[in] | handle | A UART2_Handle returned from UART2_open() |
void UART2Support_enableRx | ( | UART2_HWAttrs const * | hwAttrs | ) |
Function to enable the receive.
[in] | hwAttrs | A pointer to a UART2_HWAttrs structure |
void UART2Support_enableTx | ( | UART2_HWAttrs const * | hwAttrs | ) |
Function to enable the transmit interrupt.
[in] | hwAttrs | A pointer to a UART2_HWAttrs structure |
void UART2Support_powerSetConstraint | ( | void | ) |
Function to set power constraint.
void UART2Support_powerRelConstraint | ( | void | ) |
Function to release power constraint.
int_fast16_t UART2Support_rxStatus2ErrorCode | ( | uint32_t | errorData | ) |
Function to convert RX error status to a UART2 error code.
[in] | errorData | Data indicating the UART RX error status |
UART2_STATUS_SUCCESS | The call was successful. |
UART2_STATUS_EOVERRUN | A fifo overrun occurred. |
UART2_STATUS_EFRAMING | A framinig error occurred. |
UART2_STATUS_EBREAK | A break error occurred. |
UART2_STATUS_EPARITY | A parity error occurred. |
uint32_t UART2Support_sendData | ( | UART2_HWAttrs const * | hwAttrs, |
size_t | size, | ||
uint8_t * | buf | ||
) |
Function to send data.
[in] | hwAttrs | A pointer to a UART2_HWAttrs structure |
[in] | size | The number of bytes in the buffer that should be written to the UART |
[in] | buf | A pointer to buffer containing data to be written to the UART |
bool UART2Support_txDone | ( | UART2_HWAttrs const * | hwAttrs | ) |
Function to determine if TX is in progress.
[in] | hwAttrs | A pointer to a UART2_HWAttrs structure |
int UART2Support_uartRxError | ( | UART2_HWAttrs const * | hwAttrs | ) |
Function to clear receive errors.
[in] | hwAttrs | A pointer to a UART2_HWAttrs structure |
UART2_STATUS_SUCCESS | The call was successful. |
UART2_STATUS_EOVERRUN | A fifo overrun occurred. |
UART2_STATUS_EFRAMING | A framinig error occurred. |
UART2_STATUS_EBREAK | A break error occurred. |
UART2_STATUS_EPARITY | A parity error occurred. |