Infineon MOTIX™ MCU TLE985x Device Family SDK
Data Structures | Functions
uart.h File Reference

Go to the source code of this file.

Detailed Description

UART low level access library.

Version
V0.2.6
Date
21. Jan 2022
Note
This file violates [MISRA 2012 Rule 11.1, required], [MISRA 2012 Rule 11.4, advisory], [MISRA 2012 Rule 11.6, required], [MISRA 2012 Rule 8.7, advisory]

Include Graph

Include dependency graph for uart.h:

Data Structures

struct  TUart
 This struct lists parameter (clock) of UART1/UART2. More...
 

Functions

void UART1_Init (void)
 Initializes the UART1 module. More...
 
void UART2_Init (void)
 Initializes the UART2 module. More...
 
void UART1_BaudRate_Set (uint32 baudrate)
 Sets the baudrate for UART1. More...
 
void UART2_BaudRate_Set (uint32 baudrate)
 Sets the baudrate for UART2. More...
 
INLINE uint8 UART1_RX_Sts (void)
 Reads the receive interrupt flag for UART1. More...
 
INLINE uint8 UART1_TX_Sts (void)
 Reads the transmit interrupt flag for UART1. More...
 
INLINE uint8 UART2_RX_Sts (void)
 Reads the receive interrupt flag for UART2. More...
 
INLINE uint8 UART2_TX_Sts (void)
 Reads the transmit interrupt flag for UART2. More...
 
INLINE void UART1_Receiver_En (void)
 Enables Receiver of Serial Port (UART1). More...
 
INLINE void UART1_Receiver_Dis (void)
 Disables Receiver of Serial Port (UART1). More...
 
INLINE void UART1_BaudRateGen_En (void)
 Enables Baud-rate generator (UART1). More...
 
INLINE void UART1_BaudRateGen_Dis (void)
 Disables Baud-rate generator (UART1). More...
 
INLINE void UART2_Receiver_En (void)
 Enables Receiver of Serial Port (UART2). More...
 
INLINE void UART2_Receiver_Dis (void)
 Disables Receiver of Serial Port (UART2). More...
 
INLINE void UART2_BaudRateGen_En (void)
 Enables Baud-rate generator (UART2). More...
 
INLINE void UART2_BaudRateGen_Dis (void)
 Disables Baud-rate generator (UART2). More...
 
INLINE void UART1_RX_Int_Clr (void)
 Clears receive interrupt flag for UART1. More...
 
INLINE void UART1_TX_Int_Clr (void)
 Clears transmit interrupt flag for UART1. More...
 
INLINE void UART2_RX_Int_Clr (void)
 Clears receive interrupt flag for UART2. More...
 
INLINE void UART2_TX_Int_Clr (void)
 Clears transmit interrupt flag for UART2. More...
 
INLINE void UART1_RX_Int_En (void)
 Enables receive interrupt for UART1. More...
 
INLINE void UART1_RX_Int_Dis (void)
 Disables receive interrupt for UART1. More...
 
INLINE void UART1_TX_Int_En (void)
 Enables transmit interrupt for UART1. More...
 
INLINE void UART1_TX_Int_Dis (void)
 Disables transmit interrupt for UART1. More...
 
INLINE void UART2_RX_Int_En (void)
 Enables receive interrupt for UART2. More...
 
INLINE void UART2_RX_Int_Dis (void)
 Disables receive interrupt for UART2. More...
 
INLINE void UART2_TX_Int_En (void)
 Enables transmit interrupt for UART2. More...
 
INLINE void UART2_TX_Int_Dis (void)
 Disables transmit interrupt for UART2. More...
 
INLINE void UART2_EXINT2_Int_En (void)
 Enables EXINT2 interrupt for UART2. More...
 
INLINE void UART2_EXINT2_Int_Dis (void)
 Disables EXINT2 interrupt for UART2. More...
 
INLINE void UART1_Send_Byte (uint8 c)
 Clears the UART1 Transmit interrupt and sends a Byte via UART1. More...
 
INLINE void UART1_Buffer_Set (uint8 c)
 Sends a Byte via UART1. More...
 
INLINE uint8 UART1_Get_Byte (void)
 Clears the UART1 receive interrupt and returns the UART1 buffer. More...
 
INLINE uint8 UART1_Buffer_Get (void)
 Reads UART1 Buffer. More...
 
INLINE bool UART1_isByteReceived (void)
 Checks if UART1 is receiving Byte or not. More...
 
INLINE bool UART1_isByteTransmitted (void)
 Checks if UART1 is transmitting Byte or not. More...
 
INLINE void UART2_Send_Byte (uint8 c)
 Clears the UART2 Transmit interrupt and sends a Byte via UART2. More...
 
INLINE void UART2_Buffer_Set (uint8 c)
 Sends a Byte via UART2. More...
 
INLINE uint8 UART2_Get_Byte (void)
 Clears the UART2 receive interrupt and returns the UART2 buffer. More...
 
INLINE uint8 UART2_Buffer_Get (void)
 Reads UART2 Buffer. More...
 
INLINE bool UART2_isByteReceived (void)
 Checks if UART2 is receiving Byte or not. More...
 
INLINE bool UART2_isByteTransmitted (void)
 Checks if UART2 is transmitting Byte or not. More...
 
INLINE void UART1_BaudRate_Value_Set (uint16 br_val)
 Writes the baudrate timer register (UART1). More...
 
INLINE void UART1_Fractional_Divider_Value_Set (uint8 FD_val)
 Writes the Fractional Divider register (UART1). More...
 
INLINE void UART2_BaudRate_Value_Set (uint16 br_val)
 Writes the baudrate timer register (UART2). More...
 
INLINE void UART2_Fractional_Divider_Value_Set (uint8 FD_val)
 Writes the Fractional Divider register (UART2). More...
 

Function Documentation

◆ UART1_BaudRate_Set()

void UART1_BaudRate_Set ( uint32  baudrate)

Sets the baudrate for UART1.

Parameters
baudratebaudrate, e.g. 19200, or 115200; range: 1221 to 5000000 (a value out of this range will not be applied)

Example

This example sets UART1 BAUDRATE to 19200.

void Example_Function(void)
{
}
void UART1_BaudRate_Set(uint32 baudrate)
Sets the baudrate for UART1.

◆ UART1_BaudRate_Value_Set()

INLINE void UART1_BaudRate_Value_Set ( uint16  br_val)

Writes the baudrate timer register (UART1).

Note
Setting new Baud-rate value must be when BaudRateGen is disabled.

Example

This example receives a Byte via UART1 (baud-rate is equal to 19200 when frequency is equal to 40MHz).

void Example_Function(void)
{
uint8 ch;
if (UART1_isByteReceived() == TRUE)
{
}
}
uint8_t uint8
8 bit unsigned value
Definition: types.h:153
INLINE void UART1_Receiver_Dis(void)
Disables Receiver of Serial Port (UART1).
Definition: uart.h:1102
INLINE void UART1_Receiver_En(void)
Enables Receiver of Serial Port (UART1).
Definition: uart.h:1097
INLINE uint8 UART1_Get_Byte(void)
Clears the UART1 receive interrupt and returns the UART1 buffer.
Definition: uart.h:1182
INLINE void UART1_Fractional_Divider_Value_Set(uint8 FD_val)
Writes the Fractional Divider register (UART1).
Definition: uart.h:1316
INLINE bool UART1_isByteReceived(void)
Checks if UART1 is receiving Byte or not.
Definition: uart.h:1122
INLINE void UART1_BaudRateGen_Dis(void)
Disables Baud-rate generator (UART1).
Definition: uart.h:1236
INLINE void UART1_BaudRateGen_En(void)
Enables Baud-rate generator (UART1).
Definition: uart.h:1231
INLINE void UART1_BaudRate_Value_Set(uint16 br_val)
Writes the baudrate timer register (UART1).
Definition: uart.h:1311

◆ UART1_BaudRateGen_Dis()

INLINE void UART1_BaudRateGen_Dis ( void  )

Disables Baud-rate generator (UART1).

Note
Setting new Baud-rate value must be when BaudRateGen is disabled.

Example

This example receives a Byte via UART1 (baudrate is equal to 19200 when frequency is equal to 40MHz).

◆ UART1_BaudRateGen_En()

INLINE void UART1_BaudRateGen_En ( void  )

Enables Baud-rate generator (UART1).

Note
Setting new Baud-rate value must be when BaudRateGen is disabled.

Example

This example receives a Byte via UART1 (baudrate is equal to 19200 when frequency is equal to 40MHz).

◆ UART1_Buffer_Get()

INLINE uint8 UART1_Buffer_Get ( void  )

Reads UART1 Buffer.

Returns
Received Byte

Example

This example receives a Byte via UART1.

void Example_Function(void)
{
uint8 ch;
if (UART1_isByteReceived() == TRUE)
{
}
}
INLINE uint8 UART1_Buffer_Get(void)
Reads UART1 Buffer.
Definition: uart.h:1177
INLINE void UART1_RX_Int_Clr(void)
Clears receive interrupt flag for UART1.
Definition: uart.h:1241

◆ UART1_Buffer_Set()

INLINE void UART1_Buffer_Set ( uint8  c)

Sends a Byte via UART1.

Parameters
cByte to send

Example

This example sends "A" via UART1.

void Example_Function(void)
{
if (UART1_isByteTransmitted() == TRUE)
{
}
}
INLINE void UART1_TX_Int_Clr(void)
Clears transmit interrupt flag for UART1.
Definition: uart.h:1246
INLINE bool UART1_isByteTransmitted(void)
Checks if UART1 is transmitting Byte or not.
Definition: uart.h:1137
INLINE void UART1_Buffer_Set(uint8 c)
Sends a Byte via UART1.
Definition: uart.h:1188

◆ UART1_Fractional_Divider_Value_Set()

INLINE void UART1_Fractional_Divider_Value_Set ( uint8  FD_val)

Writes the Fractional Divider register (UART1).

Example

This example receives a Byte via UART1 (baud-rate is equal to 19200 when frequency is equal to 40MHz).

◆ UART1_Get_Byte()

INLINE uint8 UART1_Get_Byte ( void  )

Clears the UART1 receive interrupt and returns the UART1 buffer.

Returns
Received Byte

Example

This example receives a Byte via UART1.

void Example_Function(void)
{
uint8 ch;
if (UART1_isByteReceived() == TRUE)
{
}
}

◆ UART1_Init()

void UART1_Init ( void  )

Initializes the UART1 module.

◆ UART1_isByteReceived()

INLINE bool UART1_isByteReceived ( void  )

Checks if UART1 is receiving Byte or not.

Return values
TRUEa byte was received
FALSEno byte was received

Example

This example receives a Byte via UART1.

void Example_Function(void)
{
uint8 ch;
if (UART1_isByteReceived() == TRUE)
{
}
}

◆ UART1_isByteTransmitted()

INLINE bool UART1_isByteTransmitted ( void  )

Checks if UART1 is transmitting Byte or not.

Return values
TRUEa byte was transmitted
FALSEno byte was transmitted

Example

This example sends "A" via UART1.

void Example_Function(void)
{
if (UART1_isByteTransmitted() == TRUE)
{
}
}
INLINE void UART1_Send_Byte(uint8 c)
Clears the UART1 Transmit interrupt and sends a Byte via UART1.
Definition: uart.h:1193

◆ UART1_Receiver_Dis()

INLINE void UART1_Receiver_Dis ( void  )

Disables Receiver of Serial Port (UART1).

Example

This example receives a Byte via UART1.

void Example_Function(void)
{
uint8 ch;
if (UART1_isByteReceived() == TRUE)
{
}
}

◆ UART1_Receiver_En()

INLINE void UART1_Receiver_En ( void  )

Enables Receiver of Serial Port (UART1).

Example

This example receives a Byte via UART1.

void Example_Function(void)
{
uint8 ch;
if (UART1_isByteReceived() == TRUE)
{
}
}

◆ UART1_RX_Int_Clr()

INLINE void UART1_RX_Int_Clr ( void  )

Clears receive interrupt flag for UART1.

Example

This example receives a Byte via UART1.

void Example_Function(void)
{
uint8 ch;
if (UART1_isByteReceived() == TRUE)
{
}
}

◆ UART1_RX_Int_Dis()

INLINE void UART1_RX_Int_Dis ( void  )

Disables receive interrupt for UART1.

Example

This example treats the receive interrupt for UART1.

void Example_Function(void)
{
if (UART1_RX_Sts() == 1u)
{
UART1_RX_CALLBACK();
}
}
INLINE uint8 UART1_RX_Sts(void)
Reads the receive interrupt flag for UART1.
Definition: uart.h:1117
INLINE void UART1_RX_Int_En(void)
Enables receive interrupt for UART1.
Definition: uart.h:1261
INLINE void UART1_RX_Int_Dis(void)
Disables receive interrupt for UART1.
Definition: uart.h:1266

◆ UART1_RX_Int_En()

INLINE void UART1_RX_Int_En ( void  )

Enables receive interrupt for UART1.

Example

This example treats the receive interrupt for UART1.

void Example_Function(void)
{
if (UART1_RX_Sts() == 1u)
{
UART1_RX_CALLBACK();
}
}

◆ UART1_RX_Sts()

INLINE uint8 UART1_RX_Sts ( void  )

Reads the receive interrupt flag for UART1.

Returns
Receive Interrupt Flag Status

Example

This example receives a Byte via UART1.

void Example_Function(void)
{
uint8 ch;
if (UART1_RX_Sts() == 1u)
{
}
}

◆ UART1_Send_Byte()

INLINE void UART1_Send_Byte ( uint8  c)

Clears the UART1 Transmit interrupt and sends a Byte via UART1.

Parameters
cByte to send

Example

This example sends "A" via UART1.

void Example_Function(void)
{
if (UART1_isByteTransmitted() == TRUE)
{
}
}

◆ UART1_TX_Int_Clr()

INLINE void UART1_TX_Int_Clr ( void  )

Clears transmit interrupt flag for UART1.

Example

This example sends "A" via UART1.

void Example_Function(void)
{
if (UART1_isByteTransmitted() == TRUE)
{
}
}

◆ UART1_TX_Int_Dis()

INLINE void UART1_TX_Int_Dis ( void  )

Disables transmit interrupt for UART1.

Example

This example treats the transmit interrupt for UART1.

void Example_Function(void)
{
if (UART1_TX_Sts() == 1u)
{
UART1_TX_CALLBACK();
}
}
INLINE void UART1_TX_Int_Dis(void)
Disables transmit interrupt for UART1.
Definition: uart.h:1276
INLINE uint8 UART1_TX_Sts(void)
Reads the transmit interrupt flag for UART1.
Definition: uart.h:1132
INLINE void UART1_TX_Int_En(void)
Enables transmit interrupt for UART1.
Definition: uart.h:1271

◆ UART1_TX_Int_En()

INLINE void UART1_TX_Int_En ( void  )

Enables transmit interrupt for UART1.

Example

This example treats the transmit interrupt for UART1.

void Example_Function(void)
{
if (UART1_TX_Sts() == 1u)
{
UART1_TX_CALLBACK();
}
}

◆ UART1_TX_Sts()

INLINE uint8 UART1_TX_Sts ( void  )

Reads the transmit interrupt flag for UART1.

Returns
Transmit Interrupt Flag Status

Example

This example sends "A" via UART1.

void Example_Function(void)
{
if (UART1_TX_Sts() == 1u)
{
}
}

◆ UART2_BaudRate_Set()

void UART2_BaudRate_Set ( uint32  baudrate)

Sets the baudrate for UART2.

Parameters
baudratebaudrate, e.g. 19200, or 115200; range: 1221 to 5000000 (a value out of this range will not be applied)

Example

This example sets UART1 BAUDRATE to 115200.

void Example_Function(void)
{
}
void UART2_BaudRate_Set(uint32 baudrate)
Sets the baudrate for UART2.

◆ UART2_BaudRate_Value_Set()

INLINE void UART2_BaudRate_Value_Set ( uint16  br_val)

Writes the baudrate timer register (UART2).

Note
Setting new Baud-rate value must be when BaudRateGen is disabled.

Example

This example receives a Byte via UART2 (baud-rate is equal to 19200 when frequency is equal to 40MHz).

void Example_Function(void)
{
uint8 ch;
if (UART2_isByteReceived() == TRUE)
{
}
}
INLINE void UART2_BaudRateGen_En(void)
Enables Baud-rate generator (UART2).
Definition: uart.h:1221
INLINE void UART2_Receiver_Dis(void)
Disables Receiver of Serial Port (UART2).
Definition: uart.h:1112
INLINE void UART2_Fractional_Divider_Value_Set(uint8 FD_val)
Writes the Fractional Divider register (UART2).
Definition: uart.h:1326
INLINE void UART2_BaudRateGen_Dis(void)
Disables Baud-rate generator (UART2).
Definition: uart.h:1226
INLINE uint8 UART2_Get_Byte(void)
Clears the UART2 receive interrupt and returns the UART2 buffer.
Definition: uart.h:1204
INLINE void UART2_Receiver_En(void)
Enables Receiver of Serial Port (UART2).
Definition: uart.h:1107
INLINE void UART2_BaudRate_Value_Set(uint16 br_val)
Writes the baudrate timer register (UART2).
Definition: uart.h:1321
INLINE bool UART2_isByteReceived(void)
Checks if UART2 is receiving Byte or not.
Definition: uart.h:1152

◆ UART2_BaudRateGen_Dis()

INLINE void UART2_BaudRateGen_Dis ( void  )

Disables Baud-rate generator (UART2).

Note
Setting new Baud-rate value must be when BaudRateGen is disabled.

Example

This example receives a Byte via UART2 (baudrate is equal to 19200 when frequency is equeal to 40MHz).

◆ UART2_BaudRateGen_En()

INLINE void UART2_BaudRateGen_En ( void  )

Enables Baud-rate generator (UART2).

Note
Setting new Baud-rate value must be when BaudRateGen is disabled.

Example

This example receives a Byte via UART2 (baudrate is equal to 19200 when frequency is equeal to 40MHz).

◆ UART2_Buffer_Get()

INLINE uint8 UART2_Buffer_Get ( void  )

Reads UART2 Buffer.

Returns
Received Byte

Example

This example receives a Byte via UART2.

void Example_Function(void)
{
uint8 ch;
if (UART2_isByteReceived() == TRUE)
{
}
}
INLINE void UART2_RX_Int_Clr(void)
Clears receive interrupt flag for UART2.
Definition: uart.h:1251
INLINE uint8 UART2_Buffer_Get(void)
Reads UART2 Buffer.
Definition: uart.h:1199

◆ UART2_Buffer_Set()

INLINE void UART2_Buffer_Set ( uint8  c)

Sends a Byte via UART2.

Parameters
cByte to send

Example

This example sends "A" via UART2.

void Example_Function(void)
{
if (UART2_isByteTransmitted() == TRUE)
{
}
}
INLINE void UART2_Buffer_Set(uint8 c)
Sends a Byte via UART2.
Definition: uart.h:1210
INLINE void UART2_TX_Int_Clr(void)
Clears transmit interrupt flag for UART2.
Definition: uart.h:1256
INLINE bool UART2_isByteTransmitted(void)
Checks if UART2 is transmitting Byte or not.
Definition: uart.h:1167

◆ UART2_EXINT2_Int_Dis()

INLINE void UART2_EXINT2_Int_Dis ( void  )

Disables EXINT2 interrupt for UART2.

Example

This example enables/disables EXINT2 falling interrupt for UART2.

void Example_Function(void)
{
if ((uint8)SCU->IRCON0.bit.EXINT2F == (uint8)1)
{
EXINT2_FALLING_CALLBACK();
}
}
#define SCU
Definition: tle985x.h:6277
INLINE void EXINT2_Falling_Edge_Int_En(void)
Enables External Interrupt 2x on falling edge.
Definition: int.h:1978
INLINE void EXINT2_Falling_Edge_Int_Clr(void)
Clears Interrupt Flag for External Interrupt 2x on falling edge.
Definition: int.h:2013
INLINE void UART2_EXINT2_Int_Dis(void)
Disables EXINT2 interrupt for UART2.
Definition: uart.h:1306
INLINE void UART2_EXINT2_Int_En(void)
Enables EXINT2 interrupt for UART2.
Definition: uart.h:1301

◆ UART2_EXINT2_Int_En()

INLINE void UART2_EXINT2_Int_En ( void  )

Enables EXINT2 interrupt for UART2.

Example

This example enables/disables EXINT2 falling interrupt for UART2.

void Example_Function(void)
{
if ((uint8)SCU->IRCON0.bit.EXINT2F == (uint8)1)
{
EXINT2_FALLING_CALLBACK();
}
}

◆ UART2_Fractional_Divider_Value_Set()

INLINE void UART2_Fractional_Divider_Value_Set ( uint8  FD_val)

Writes the Fractional Divider register (UART2).

Example

This example receives a Byte via UART2 (baud-rate is equal to 19200 when frequency is equal to 40MHz).

◆ UART2_Get_Byte()

INLINE uint8 UART2_Get_Byte ( void  )

Clears the UART2 receive interrupt and returns the UART2 buffer.

Returns
Received Byte

Example

This example receives a Byte via UART2.

void Example_Function(void)
{
uint8 ch;
if (UART2_isByteReceived() == TRUE)
{
}
}

◆ UART2_Init()

void UART2_Init ( void  )

Initializes the UART2 module.

◆ UART2_isByteReceived()

INLINE bool UART2_isByteReceived ( void  )

Checks if UART2 is receiving Byte or not.

Return values
TRUEa byte was received
FALSEno byte was receive

Example

This example receives a Byte via UART2.

void Example_Function(void)
{
uint8 ch;
if (UART2_isByteReceived() == TRUE)
{
}
}

◆ UART2_isByteTransmitted()

INLINE bool UART2_isByteTransmitted ( void  )

Checks if UART2 is transmitting Byte or not.

Return values
TRUEa byte was transmitted
FALSEno byte was transmitted

Example

This example sends "A" via UART2.

void Example_Function(void)
{
if (UART2_isByteTransmitted() == TRUE)
{
}
}
INLINE void UART2_Send_Byte(uint8 c)
Clears the UART2 Transmit interrupt and sends a Byte via UART2.
Definition: uart.h:1215

◆ UART2_Receiver_Dis()

INLINE void UART2_Receiver_Dis ( void  )

Disables Receiver of Serial Port (UART2).

Example

This example receives a Byte via UART2.

void Example_Function(void)
{
uint8 ch;
if (UART2_isByteReceived() == TRUE)
{
}
}

◆ UART2_Receiver_En()

INLINE void UART2_Receiver_En ( void  )

Enables Receiver of Serial Port (UART2).

Example

This example receives a Byte via UART2.

void Example_Function(void)
{
uint8 ch;
if (UART2_isByteReceived() == TRUE)
{
}
}

◆ UART2_RX_Int_Clr()

INLINE void UART2_RX_Int_Clr ( void  )

Clears receive interrupt flag for UART2.

Example

This example receives a Byte via UART2.

void Example_Function(void)
{
uint8 ch;
if (UART2_isByteReceived() == TRUE)
{
}
}

◆ UART2_RX_Int_Dis()

INLINE void UART2_RX_Int_Dis ( void  )

Disables receive interrupt for UART2.

Example

This example treats the receive interrupt for UART2.

void Example_Function(void)
{
if (UART2_RX_Sts() == 1u)
{
UART2_RX_CALLBACK();
}
}
INLINE void UART2_RX_Int_Dis(void)
Disables receive interrupt for UART2.
Definition: uart.h:1286
INLINE void UART2_RX_Int_En(void)
Enables receive interrupt for UART2.
Definition: uart.h:1281
INLINE uint8 UART2_RX_Sts(void)
Reads the receive interrupt flag for UART2.
Definition: uart.h:1147

◆ UART2_RX_Int_En()

INLINE void UART2_RX_Int_En ( void  )

Enables receive interrupt for UART2.

Example

This example treats the receive interrupt for UART2.

void Example_Function(void)
{
if (UART2_RX_Sts() == 1u)
{
UART2_RX_CALLBACK();
}
}

◆ UART2_RX_Sts()

INLINE uint8 UART2_RX_Sts ( void  )

Reads the receive interrupt flag for UART2.

Returns
Receive Interrupt Flag Status

Example

This example receives a Byte via UART2.

void Example_Function(void)
{
uint8 ch;
if (UART2_RX_Sts() == 1u)
{
}
}

◆ UART2_Send_Byte()

INLINE void UART2_Send_Byte ( uint8  c)

Clears the UART2 Transmit interrupt and sends a Byte via UART2.

Parameters
cByte to send

Example

This example sends "A" via UART2.

void Example_Function(void)
{
if (UART2_isByteTransmitted() == TRUE)
{
}
}

◆ UART2_TX_Int_Clr()

INLINE void UART2_TX_Int_Clr ( void  )

Clears transmit interrupt flag for UART2.

Example

This example sends "A" via UART2.

void Example_Function(void)
{
if (UART2_isByteTransmitted() == TRUE)
{
}
}

◆ UART2_TX_Int_Dis()

INLINE void UART2_TX_Int_Dis ( void  )

Disables transmit interrupt for UART2.

Example

This example the transmit interrupt for UART2.

void Example_Function(void)
{
if (UART2_TX_Sts() == 1u)
{
UART2_TX_CALLBACK();
}
}
INLINE uint8 UART2_TX_Sts(void)
Reads the transmit interrupt flag for UART2.
Definition: uart.h:1162
INLINE void UART2_TX_Int_Dis(void)
Disables transmit interrupt for UART2.
Definition: uart.h:1296
INLINE void UART2_TX_Int_En(void)
Enables transmit interrupt for UART2.
Definition: uart.h:1291

◆ UART2_TX_Int_En()

INLINE void UART2_TX_Int_En ( void  )

Enables transmit interrupt for UART2.

Example

This example the transmit interrupt for UART2.

void Example_Function(void)
{
if (UART2_TX_Sts() == 1u)
{
UART2_TX_CALLBACK();
}
}

◆ UART2_TX_Sts()

INLINE uint8 UART2_TX_Sts ( void  )

Reads the transmit interrupt flag for UART2.

Returns
Transmit Interrupt Flag Status

Example

This example sends "A" via UART2.

void Example_Function(void)
{
if (UART2_TX_Sts() == 1u)
{
}
}