Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
Functions | Variables
UART_api

Detailed Description

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
 

Function Documentation

◆ UART0_clrEOFIntSts()

INLINE void UART0_clrEOFIntSts ( void  )

Clear the UART0 End of Sync Interrupt Status, UART0.ISC.EOFSYNCLR.

◆ UART0_clrRXIntSts()

INLINE void UART0_clrRXIntSts ( void  )

Clear the UART0 Empty Receive Buffer Interrupt Status, UART0.ISC.RICLR.

◆ UART0_clrSyncErrIntSts()

INLINE void UART0_clrSyncErrIntSts ( void  )

Clear the UART0 Sync Error Interrupt Status, UART0.ISC.ERRSYNCLR.

◆ UART0_clrTXIntSts()

INLINE void UART0_clrTXIntSts ( void  )

Clear the UART0 Empty Transmit Buffer Interrupt Status, UART0.ISC.TICLR.

◆ UART0_disBaudrateGen()

INLINE void UART0_disBaudrateGen ( void  )

Disable the baudrate generator, UART0.BCON.BR_R.

◆ UART0_disEOSInt()

INLINE void UART0_disEOSInt ( void  )

Disable UART0 End of Sync Interrupt.

◆ UART0_disRXErrInt()

INLINE void UART0_disRXErrInt ( void  )

Disable UART0 Receive Interrupt.

◆ UART0_disSyncErrInt()

INLINE void UART0_disSyncErrInt ( void  )

Disable UART0 Sync Error Interrupt.

◆ UART0_disTXInt()

INLINE void UART0_disTXInt ( void  )

Disable UART0 Transmit Interrupt.

◆ UART0_enBaudrateGen()

INLINE void UART0_enBaudrateGen ( void  )

Enable the baudrate generator, UART0.BCON.BR_R.

◆ UART0_enEOSInt()

INLINE void UART0_enEOSInt ( void  )

Enable UART0 End of Sync Interrupt.

◆ UART0_enRXErrInt()

INLINE void UART0_enRXErrInt ( void  )

Enable UART0 Receive Interrupt.

◆ UART0_enSyncErrInt()

INLINE void UART0_enSyncErrInt ( void  )

Enable UART0 Sync Error Interrupt.

◆ UART0_enTXInt()

INLINE void UART0_enTXInt ( void  )

Enable UART0 Transmit Interrupt.

◆ UART0_getBaudrate()

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))))

Returns
uint32 UART0 baudrate

◆ UART0_getEOFIntSts()

INLINE uint8 UART0_getEOFIntSts ( void  )

Get the UART0 End of Sync Interrupt Status, UART0.IS.EOFSYN.

Returns
uint8 End of Sync Interrupt Status, UART0.IS.EOFSYN

◆ UART0_getRXbuffer()

INLINE uint16 UART0_getRXbuffer ( void  )

Get the UART0 RX buffer value.

Returns
uint16 UART0 RX buffer

◆ UART0_getRXIntSts()

INLINE uint8 UART0_getRXIntSts ( void  )

Get the UART0 Empty Receive Buffer Interrupt Status, UART0.IS.RI.

Returns
uint8 Empty Receive Buffer Interrupt Status, UART0.IS.RI

◆ UART0_getSyncErrIntSts()

INLINE uint8 UART0_getSyncErrIntSts ( void  )

Get the UART0 Sync Error Interrupt Status, UART0.IS.ERRSYN.

Returns
uint8 Sync Error Interrupt Status, UART0.IS.ERRSYN

◆ UART0_getTXIntSts()

INLINE uint8 UART0_getTXIntSts ( void  )

Get the UART0 Empty Transmit Buffer Interrupt Status, UART0.IS.TI.

Returns
uint8 Empty Transmit Buffer Interrupt Status, UART0.IS.TI

◆ UART0_init()

sint8 UART0_init ( void  )

Initialize UART0.

Returns
sint8 0: success, <0: error codes

◆ UART0_isByteReceived()

INLINE bool UART0_isByteReceived ( void  )

Check if UART0 has received a byte.

Returns
true, a byte was received OR false, a byte was not received

◆ UART0_isByteTransmitted()

INLINE bool UART0_isByteTransmitted ( void  )

Check if UART0 has transmitted a byte.

Returns
true, a byte was transmitted OR false, a byte was not transmitted

◆ UART0_setBaudrate()

sint8 UART0_setBaudrate ( uint32  u32_baudrate)

Set the baudrate for UART0.

Parameters
u32_baudratebaudrate
Returns
sint8 0: success, <0: error codes

◆ UART0_setEOFIntSts()

void UART0_setEOFIntSts ( void  )

Set UART0 End Of Sync Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART0_setRXIntSts()

void UART0_setRXIntSts ( void  )

Set UART0 RX Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART0_setSyncErrIntSts()

void UART0_setSyncErrIntSts ( void  )

Set UART0 Sync Error Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART0_setTXbuffer()

INLINE void UART0_setTXbuffer ( uint16  u16_value)

Set the UART0 TX buffer value.

Parameters
u16_valueUART0 TX buffer

◆ UART0_setTXIntSts()

void UART0_setTXIntSts ( void  )

Set UART0 TX Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART0_startTX()

INLINE void UART0_startTX ( void  )

Start the transmission, UART0.TSTART.TXSTART.

◆ UART1_clrEOFIntSts()

INLINE void UART1_clrEOFIntSts ( void  )

Clear the UART1 End of Sync Interrupt Status, UART1.ISC.EOFSYNCLR.

◆ UART1_clrRXIntSts()

INLINE void UART1_clrRXIntSts ( void  )

Clear the UART1 Empty Receive Buffer Interrupt Status, UART1.ISC.RICLR.

◆ UART1_clrSyncErrIntSts()

INLINE void UART1_clrSyncErrIntSts ( void  )

Clear the UART1 Sync Error Interrupt Status, UART1.ISC.ERRSYNCLR.

◆ UART1_clrTXIntSts()

INLINE void UART1_clrTXIntSts ( void  )

Clear the UART1 Empty Transmit Buffer Interrupt Status, UART1.ISC.TICLR.

◆ UART1_disBaudrateGen()

INLINE void UART1_disBaudrateGen ( void  )

Disable the baudrate generator, UART1.BCON.BR_R.

◆ UART1_disEOSInt()

INLINE void UART1_disEOSInt ( void  )

Disable UART1 End of Sync Interrupt.

◆ UART1_disRXErrInt()

INLINE void UART1_disRXErrInt ( void  )

Disable UART1 Receive Interrupt.

◆ UART1_disSyncErrInt()

INLINE void UART1_disSyncErrInt ( void  )

Disable UART1 Sync Error Interrupt.

◆ UART1_disTXInt()

INLINE void UART1_disTXInt ( void  )

Disable UART1 Transmit Interrupt.

◆ UART1_enBaudrateGen()

INLINE void UART1_enBaudrateGen ( void  )

Enable the baudrate generator, UART1.BCON.BR_R.

◆ UART1_enEOSInt()

INLINE void UART1_enEOSInt ( void  )

Enable UART1 End of Sync Interrupt.

◆ UART1_enRXErrInt()

INLINE void UART1_enRXErrInt ( void  )

Enable UART1 Receive Interrupt.

◆ UART1_enSyncErrInt()

INLINE void UART1_enSyncErrInt ( void  )

Enable UART1 Sync Error Interrupt.

◆ UART1_enTXInt()

INLINE void UART1_enTXInt ( void  )

Enable UART1 Transmit Interrupt.

◆ UART1_getBaudrate()

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))))

Returns
uint32 UART1 baudrate

◆ UART1_getEOFIntSts()

INLINE uint8 UART1_getEOFIntSts ( void  )

Get the UART1 End of Sync Interrupt Status, UART1.IS.EOFSYN.

Returns
uint8 End of Sync Interrupt Status, UART1.IS.EOFSYN

◆ UART1_getRXbuffer()

INLINE uint16 UART1_getRXbuffer ( void  )

Get the UART1 RX buffer value.

Returns
uint16 UART1 RX buffer

◆ UART1_getRXIntSts()

INLINE uint8 UART1_getRXIntSts ( void  )

Get the UART1 Empty Receive Buffer Interrupt Status, UART1.IS.RI.

Returns
uint8 Empty Receive Buffer Interrupt Status, UART1.IS.RI

◆ UART1_getSyncErrIntSts()

INLINE uint8 UART1_getSyncErrIntSts ( void  )

Get the UART1 Sync Error Interrupt Status, UART1.IS.ERRSYN.

Returns
uint8 Sync Error Interrupt Status, UART1.IS.ERRSYN

◆ UART1_getTXIntSts()

INLINE uint8 UART1_getTXIntSts ( void  )

Get the UART1 Empty Transmit Buffer Interrupt Status, UART1.IS.TI.

Returns
uint8 Empty Transmit Buffer Interrupt Status, UART1.IS.TI

◆ UART1_init()

sint8 UART1_init ( void  )

Initialize UART1.

Returns
sint8 0: success, <0: error codes

◆ UART1_isByteReceived()

INLINE bool UART1_isByteReceived ( void  )

Check if UART1 has received a byte.

Returns
true, a byte was received OR false, a byte was not received

◆ UART1_isByteTransmitted()

INLINE bool UART1_isByteTransmitted ( void  )

Check if UART1 has transmitted a byte.

Returns
true, a byte was transmitted OR false, a byte was not transmitted

◆ UART1_setBaudrate()

sint8 UART1_setBaudrate ( uint32  u32_baudrate)

Set the baudrate for UART1.

Parameters
u32_baudratebaudrate
Returns
sint8 0: success, <0: error codes

◆ UART1_setEOFIntSts()

void UART1_setEOFIntSts ( void  )

Set UART1 End Of Sync Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART1_setRXIntSts()

void UART1_setRXIntSts ( void  )

Set UART1 RX Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART1_setSyncErrIntSts()

void UART1_setSyncErrIntSts ( void  )

Set UART1 Sync Error Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART1_setTXbuffer()

INLINE void UART1_setTXbuffer ( uint16  u16_value)

Set the UART1 TX buffer value.

Parameters
u16_valueUART1 TX buffer

◆ UART1_setTXIntSts()

void UART1_setTXIntSts ( void  )

Set UART1 TX Interrupt Node Pointer.

Warning
Do not change this at runtime, use the ConfigWizard to configure this feature!

◆ UART1_startTX()

INLINE void UART1_startTX ( void  )

Start the transmission, UART1.TSTART.TXSTART.

Variable Documentation

◆ feature

void use the ConfigWizard to configure this feature