Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
Functions | Variables
uart.h File Reference

Go to the source code of this file.

Detailed Description

UART low level access library.

Version
V0.6.2
Date
05. Nov 2024
Note

Include Graph

Include dependency graph for uart.h:

Include Graph

This graph shows which files directly or indirectly include this file:

Functions

sint8 UART0_init (void)
 Initialize UART0. More...
 
sint8 UART1_init (void)
 Initialize UART1. More...
 
uint32 UART0_getBaudrate (void)
 Get the baudrate for UART0 Transform equation (SCU_fUART_MHz * 1000000 / (16 * (1U << (uint8)UART0->BCON.bit.BR_PRE) * (UART0->BCON.bit.BG_BR_VALUE + (UART0->BCON.bit.BG_FD_SEL / 32)))) to ((SCU_fUART_MHz * 1000000 * 2 ) / ((1U << (uint8)UART0->BCON.bit.BR_PRE) * (32 * UART0->BCON.bit.BG_BR_VALUE + (UART0->BCON.bit.BG_FD_SEL)))) More...
 
uint32 UART1_getBaudrate (void)
 Get the baudrate for UART1 Transform equation (SCU_fUART_MHz * 1000000 / (16 * (1U << (uint8)UART1->BCON.bit.BR_PRE) * (UART1->BCON.bit.BG_BR_VALUE + (UART1->BCON.bit.BG_FD_SEL / 32)))) to ((SCU_fUART_MHz * 1000000 * 2 ) / ((1U << (uint8)UART1->BCON.bit.BR_PRE) * (32 * UART1->BCON.bit.BG_BR_VALUE + (UART1->BCON.bit.BG_FD_SEL)))) More...
 
sint8 UART0_setBaudrate (uint32 u32_baudrate)
 Set the baudrate for UART0. More...
 
sint8 UART1_setBaudrate (uint32 u32_baudrate)
 Set the baudrate for UART1. More...
 
INLINE uint16 UART0_getRXbuffer (void)
 Get the UART0 RX buffer value. More...
 
INLINE void UART0_setTXbuffer (uint16 u16_value)
 Set the UART0 TX buffer value. More...
 
INLINE uint16 UART1_getRXbuffer (void)
 Get the UART1 RX buffer value. More...
 
INLINE void UART1_setTXbuffer (uint16 u16_value)
 Set the UART1 TX buffer value. More...
 
INLINE bool UART0_isByteReceived (void)
 Check if UART0 has received a byte. More...
 
INLINE bool UART0_isByteTransmitted (void)
 Check if UART0 has transmitted a byte. More...
 
INLINE bool UART1_isByteReceived (void)
 Check if UART1 has received a byte. More...
 
INLINE bool UART1_isByteTransmitted (void)
 Check if UART1 has transmitted a byte. More...
 
INLINE void UART0_enBaudrateGen (void)
 Enable the baudrate generator, UART0.BCON.BR_R. More...
 
INLINE void UART0_disBaudrateGen (void)
 Disable the baudrate generator, UART0.BCON.BR_R. More...
 
INLINE void UART1_enBaudrateGen (void)
 Enable the baudrate generator, UART1.BCON.BR_R. More...
 
INLINE void UART1_disBaudrateGen (void)
 Disable the baudrate generator, UART1.BCON.BR_R. More...
 
INLINE void UART0_startTX (void)
 Start the transmission, UART0.TSTART.TXSTART. More...
 
INLINE void UART1_startTX (void)
 Start the transmission, UART1.TSTART.TXSTART. More...
 
INLINE void UART0_enTXInt (void)
 Enable UART0 Transmit Interrupt. More...
 
INLINE void UART0_enRXErrInt (void)
 Enable UART0 Receive Interrupt. More...
 
INLINE void UART0_enSyncErrInt (void)
 Enable UART0 Sync Error Interrupt. More...
 
INLINE void UART0_enEOSInt (void)
 Enable UART0 End of Sync Interrupt. More...
 
INLINE void UART0_disTXInt (void)
 Disable UART0 Transmit Interrupt. More...
 
INLINE void UART0_disRXErrInt (void)
 Disable UART0 Receive Interrupt. More...
 
INLINE void UART0_disSyncErrInt (void)
 Disable UART0 Sync Error Interrupt. More...
 
INLINE void UART0_disEOSInt (void)
 Disable UART0 End of Sync Interrupt. More...
 
INLINE void UART1_enTXInt (void)
 Enable UART1 Transmit Interrupt. More...
 
INLINE void UART1_enRXErrInt (void)
 Enable UART1 Receive Interrupt. More...
 
INLINE void UART1_enSyncErrInt (void)
 Enable UART1 Sync Error Interrupt. More...
 
INLINE void UART1_enEOSInt (void)
 Enable UART1 End of Sync Interrupt. More...
 
INLINE void UART1_disTXInt (void)
 Disable UART1 Transmit Interrupt. More...
 
INLINE void UART1_disRXErrInt (void)
 Disable UART1 Receive Interrupt. More...
 
INLINE void UART1_disSyncErrInt (void)
 Disable UART1 Sync Error Interrupt. More...
 
INLINE void UART1_disEOSInt (void)
 Disable UART1 End of Sync Interrupt. More...
 
INLINE uint8 UART0_getTXIntSts (void)
 Get the UART0 Empty Transmit Buffer Interrupt Status, UART0.IS.TI. More...
 
INLINE uint8 UART0_getRXIntSts (void)
 Get the UART0 Empty Receive Buffer Interrupt Status, UART0.IS.RI. More...
 
INLINE uint8 UART0_getSyncErrIntSts (void)
 Get the UART0 Sync Error Interrupt Status, UART0.IS.ERRSYN. More...
 
INLINE uint8 UART0_getEOFIntSts (void)
 Get the UART0 End of Sync Interrupt Status, UART0.IS.EOFSYN. More...
 
INLINE void UART0_clrTXIntSts (void)
 Clear the UART0 Empty Transmit Buffer Interrupt Status, UART0.ISC.TICLR. More...
 
INLINE void UART0_clrRXIntSts (void)
 Clear the UART0 Empty Receive Buffer Interrupt Status, UART0.ISC.RICLR. More...
 
INLINE void UART0_clrSyncErrIntSts (void)
 Clear the UART0 Sync Error Interrupt Status, UART0.ISC.ERRSYNCLR. More...
 
INLINE void UART0_clrEOFIntSts (void)
 Clear the UART0 End of Sync Interrupt Status, UART0.ISC.EOFSYNCLR. More...
 
INLINE uint8 UART1_getTXIntSts (void)
 Get the UART1 Empty Transmit Buffer Interrupt Status, UART1.IS.TI. More...
 
INLINE uint8 UART1_getRXIntSts (void)
 Get the UART1 Empty Receive Buffer Interrupt Status, UART1.IS.RI. More...
 
INLINE uint8 UART1_getSyncErrIntSts (void)
 Get the UART1 Sync Error Interrupt Status, UART1.IS.ERRSYN. More...
 
INLINE uint8 UART1_getEOFIntSts (void)
 Get the UART1 End of Sync Interrupt Status, UART1.IS.EOFSYN. More...
 
INLINE void UART1_clrTXIntSts (void)
 Clear the UART1 Empty Transmit Buffer Interrupt Status, UART1.ISC.TICLR. More...
 
INLINE void UART1_clrRXIntSts (void)
 Clear the UART1 Empty Receive Buffer Interrupt Status, UART1.ISC.RICLR. More...
 
INLINE void UART1_clrSyncErrIntSts (void)
 Clear the UART1 Sync Error Interrupt Status, UART1.ISC.ERRSYNCLR. More...
 
INLINE void UART1_clrEOFIntSts (void)
 Clear the UART1 End of Sync Interrupt Status, UART1.ISC.EOFSYNCLR. More...
 
void UART0_setTXIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART0 TX Interrupt Node Pointer. More...
 
void UART0_setRXIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART0 RX Interrupt Node Pointer. More...
 
void UART0_setSyncErrIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART0 Sync Error Interrupt Node Pointer. More...
 
void UART0_setEOFIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART0 End Of Sync Interrupt Node Pointer. More...
 
void UART1_setTXIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART1 TX Interrupt Node Pointer. More...
 
void UART1_setRXIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART1 RX Interrupt Node Pointer. More...
 
void UART1_setSyncErrIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART1 Sync Error Interrupt Node Pointer. More...
 
void UART1_setEOFIntSts (void) __attribute__((deprecated("Do not change this at runtime
 Set UART1 End Of Sync Interrupt Node Pointer. More...
 

Variables

void use the ConfigWizard to configure this feature