Functions | |
cy_en_scb_uart_status_t | Cy_SCB_UART_Init (CySCB_Type *base, cy_stc_scb_uart_config_t const *config, cy_stc_scb_uart_context_t *context) |
void | Cy_SCB_UART_DeInit (CySCB_Type *base) |
__STATIC_INLINE void | Cy_SCB_UART_Enable (CySCB_Type *base) |
Enables the SCB block for the UART operation. More... | |
void | Cy_SCB_UART_Disable (CySCB_Type *base, cy_stc_scb_uart_context_t *context) |
__STATIC_INLINE void | Cy_SCB_UART_EnableCts (CySCB_Type *base) |
Enables the Clear to Send (CTS) input for the UART. More... | |
__STATIC_INLINE void | Cy_SCB_UART_DisableCts (CySCB_Type *base) |
Disables the Clear to Send (CTS) input for the UART. More... | |
__STATIC_INLINE void | Cy_SCB_UART_SetRtsFifoLevel (CySCB_Type *base, uint32_t level) |
Sets a level for the Ready To Send (RTS) signal activation. More... | |
__STATIC_INLINE uint32_t | Cy_SCB_UART_GetRtsFifoLevel (CySCB_Type const *base) |
Returns the level in the RX FIFO for the RTS signal activation. More... | |
__STATIC_INLINE void | Cy_SCB_UART_EnableSkipStart (CySCB_Type *base) |
Enables the skip start-bit functionality. More... | |
__STATIC_INLINE void | Cy_SCB_UART_DisableSkipStart (CySCB_Type *base) |
Disable the skip start-bit functionality. More... | |
__STATIC_INLINE void Cy_SCB_UART_Enable | ( | CySCB_Type * | base | ) |
Enables the SCB block for the UART operation.
base | The pointer to the UART SCB instance. |
__STATIC_INLINE void Cy_SCB_UART_EnableCts | ( | CySCB_Type * | base | ) |
Enables the Clear to Send (CTS) input for the UART.
The UART will not transmit data while this signal is inactive.
base | The pointer to the UART SCB instance. |
__STATIC_INLINE void Cy_SCB_UART_DisableCts | ( | CySCB_Type * | base | ) |
Disables the Clear to Send (CTS) input for the UART.
See Cy_SCB_UART_EnableCts for the details.
base | The pointer to the UART SCB instance. |
__STATIC_INLINE void Cy_SCB_UART_SetRtsFifoLevel | ( | CySCB_Type * | base, |
uint32_t | level | ||
) |
Sets a level for the Ready To Send (RTS) signal activation.
When the number of data elements in the receive FIFO is below this level, then the RTS output is active. Otherwise, the RTS signal is inactive. To disable the RTS signal generation, set this level to zero.
base | The pointer to the UART SCB instance. |
level | The level in the RX FIFO for RTS signal activation. |
__STATIC_INLINE uint32_t Cy_SCB_UART_GetRtsFifoLevel | ( | CySCB_Type const * | base | ) |
Returns the level in the RX FIFO for the RTS signal activation.
base | The pointer to the UART SCB instance. |
__STATIC_INLINE void Cy_SCB_UART_EnableSkipStart | ( | CySCB_Type * | base | ) |
Enables the skip start-bit functionality.
When skip start is enabled the UART hardware does not synchronize to a start bit but synchronizes to the first rising edge. To create a rising edge, the first data bit must be a 1. This feature is useful when the start bit falling edge is used to wake the device through a GPIO interrupt.
base | The pointer to the UART SCB instance. |
__STATIC_INLINE void Cy_SCB_UART_DisableSkipStart | ( | CySCB_Type * | base | ) |
Disable the skip start-bit functionality.
See Cy_SCB_UART_EnableSkipStart for the details.
base | The pointer to the UART SCB instance. |