 |
TLE986x Device Family SDK
|
Go to the documentation of this file.
92 #include "uart_defines.h"
908 #if ((UART1_STD_EN == 1) || (UART2_STD_EN == 1))
924 sint32 stdin_getchar(
void);
925 void ttywrch(
int ch);
void UART2_Init(void)
Initializes the UART2 module.
INLINE uint8 UART1_Get_Byte(void)
Clears the UART1 receive interrupt and returns the UART1 buffer.
Definition: uart.h:969
#define SCU_MODIEN2_TIEN2_Pos
Definition: tle986x.h:8989
INLINE void UART2_Send_Byte(uint8 c)
clears the UART2 Transmit interrupt and sends a Byte via UART2.
Definition: uart.h:1058
INLINE void UART2_RX_Int_Dis(void)
disables receive interrupt of UART2.
Definition: uart.h:803
INLINE void UART1_BaudRate_Value_Set(uint16 br_val)
Writes the baudrate timer register (UART1).
Definition: uart.h:127
#define UART2_SCON_RI_Msk
Definition: tle986x.h:9897
INLINE uint8 UART1_RX_Sts(void)
reads the receive interrupt flag of UART1.
Definition: uart.h:399
INLINE uint8 UART2_TX_Sts(void)
reads the transmit interrupt flag of UART2.
Definition: uart.h:474
INLINE void UART1_BaudRateGen_Dis(void)
disables Baud-rate generator (UART1).
Definition: uart.h:156
#define UART1_SCON_RI_Pos
Definition: tle986x.h:9865
General type declarations.
INLINE void UART1_TX_Int_En(void)
enables transmit interrupt of UART1.
Definition: uart.h:735
#define UART1_SCON_REN_Pos
Definition: tle986x.h:9873
void UART2_BaudRate_Set(uint32 baudrate)
Sets the baudrate of UART2.
#define SCU_MODIEN1_TIEN1_Pos
Definition: tle986x.h:8978
#define SCU_MODIEN2_RIEN2_Msk
Definition: tle986x.h:8992
INLINE void UART2_TX_Int_En(void)
enables transmit interrupt of UART2.
Definition: uart.h:825
#define UART1_SCON_RI_Msk
Definition: tle986x.h:9866
INLINE void UART2_BaudRateGen_En(void)
enables Baud-rate generator (UART2).
Definition: uart.h:271
#define UART1_SCONCLR_RICLR_Msk
Definition: tle986x.h:9883
#define UART2_SCONCLR_RICLR_Msk
Definition: tle986x.h:9914
#define SCU_MODIEN1_RIEN1_Msk
Definition: tle986x.h:8981
SFR low level access library.
INLINE void UART2_TX_Int_Dis(void)
disables transmit interrupt of UART2.
Definition: uart.h:848
void UART1_Init(void)
Initializes the UART1 module.
INLINE void Field_Wrt8all(volatile uint8 *reg, uint8 val)
This function writes an 8-bit register directly, no mask/position needed.
Definition: sfr_access.h:326
#define INLINE
Definition: types.h:134
INLINE void Field_Mod8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:346
#define UART2_SCON_RI_Pos
Definition: tle986x.h:9896
INLINE uint8 u1_Field_Rd8(const volatile uint8 *reg, uint8 pos, uint8 msk)
This function reads a 1-bit field of a 8-bit register.
Definition: sfr_access.h:391
INLINE void UART2_Receiver_En(void)
enables Receiver of Serial Port (UART2).
Definition: uart.h:547
This struct lists parameter (clock) of UART1/UART2.
Definition: uart.h:97
INLINE bool UART1_isByteReceived(void)
checks if UART1 has received Byte or not.
Definition: uart.h:997
INLINE void UART1_RX_Int_En(void)
enables receive interrupt of UART1.
Definition: uart.h:690
INLINE bool UART2_isByteTransmitted(void)
checks if UART2 has transmitted a Byte or not.
Definition: uart.h:1144
INLINE void UART1_RX_Int_Dis(void)
disables receive interrupt of UART1.
Definition: uart.h:713
unsigned short uint16
16 bit unsigned value
Definition: types.h:140
#define UART2_SBUF_VAL_Msk
Definition: tle986x.h:9894
INLINE void UART1_Buffer_Set(uint8 data)
Sends a Byte via UART1.
Definition: uart.h:295
INLINE uint8 UART1_TX_Sts(void)
reads the transmit interrupt flag of UART1.
Definition: uart.h:425
#define SCU_MODIEN1_TIEN1_Msk
Definition: tle986x.h:8979
#define SCU_BCON2_R_Msk
Definition: tle986x.h:8612
#define UART1_SCON_TI_Msk
Definition: tle986x.h:9868
INLINE uint8 UART2_Buffer_Get(void)
Reads UART2 Buffer.
Definition: uart.h:373
#define SCU_MODIEN1_RIEN1_Pos
Definition: tle986x.h:8980
unsigned char uint8
8 bit unsigned value
Definition: types.h:139
INLINE uint8 UART2_Get_Byte(void)
Clears the UART2 receive interrupt and returns the UART2 buffer.
Definition: uart.h:1085
INLINE void UART1_Receiver_En(void)
enables Receiver of Serial Port (UART1).
Definition: uart.h:498
#define UART2_SCON_TI_Msk
Definition: tle986x.h:9899
INLINE uint8 u8_Field_Rd8(const volatile uint8 *reg, uint8 pos, uint8 msk)
This function reads a 8-bit field of a 8-bit register.
Definition: sfr_access.h:406
INLINE void UART1_RX_Int_Clr(void)
clears receive interrupt flag for UART1.
Definition: uart.h:598
INLINE uint8 UART2_RX_Sts(void)
reads the receive interrupt flag of UART2.
Definition: uart.h:451
unsigned int uint32
32 bit unsigned value
Definition: types.h:141
#define UART1_SCON_TI_Pos
Definition: tle986x.h:9867
INLINE bool UART1_isByteTransmitted(void)
checks if UART1 has transmitted a Byte or not.
Definition: uart.h:1028
INLINE void UART1_TX_Int_Clr(void)
clears transmit interrupt flag of UART1.
Definition: uart.h:620
#define SCU_BCON2_R_Pos
Definition: tle986x.h:8611
INLINE void UART2_Receiver_Dis(void)
disables Receiver of Serial Port (UART2).
Definition: uart.h:572
#define SCU_BCON1_R_Pos
Definition: tle986x.h:8606
#define UART1_SCON_REN_Msk
Definition: tle986x.h:9874
#define UART2_SCON_REN_Msk
Definition: tle986x.h:9905
#define UART2_SCONCLR_TICLR_Msk
Definition: tle986x.h:9916
#define UART2
Definition: tle986x.h:6012
#define UART1_SCONCLR_TICLR_Pos
Definition: tle986x.h:9884
INLINE uint8 UART1_Buffer_Get(void)
Reads UART1 Buffer.
Definition: uart.h:346
INLINE void UART2_TX_Int_Clr(void)
clears transmit interrupt flag of UART2.
Definition: uart.h:667
CMSIS register HeaderFile.
#define UART1_SCONCLR_RICLR_Pos
Definition: tle986x.h:9882
#define SCU
Definition: tle986x.h:6004
INLINE void UART1_Receiver_Dis(void)
disables Receiver of Serial Port (UART1).
Definition: uart.h:523
INLINE void UART2_RX_Int_En(void)
enables receive interrupt of UART2.
Definition: uart.h:780
INLINE void UART2_BaudRate_Value_Set(uint16 br_val)
Writes the baudrate timer register (UART2).
Definition: uart.h:214
#define UART2_SCON_TI_Pos
Definition: tle986x.h:9898
#define UART2_SCONCLR_RICLR_Pos
Definition: tle986x.h:9913
#define UART1
Definition: tle986x.h:6011
#define SCU_BCON1_R_Msk
Definition: tle986x.h:8607
INLINE void UART1_TX_Int_Dis(void)
disables transmit interrupt of UART1.
Definition: uart.h:758
#define UART2_SCONCLR_TICLR_Pos
Definition: tle986x.h:9915
INLINE void UART1_BaudRateGen_En(void)
enables Baud-rate generator (UART1).
Definition: uart.h:185
#define UART1_SBUF_VAL_Pos
Definition: tle986x.h:9862
#define SCU_MODIEN2_RIEN2_Pos
Definition: tle986x.h:8991
#define UART1_SBUF_VAL_Msk
Definition: tle986x.h:9863
INLINE void UART2_RX_Int_Clr(void)
clears receive interrupt flag of UART2.
Definition: uart.h:645
#define UART2_SCON_REN_Pos
Definition: tle986x.h:9904
signed int sint32
32 bit signed value
Definition: types.h:146
INLINE bool UART2_isByteReceived(void)
checks if UART2 has received Byte or not.
Definition: uart.h:1113
INLINE void UART2_BaudRateGen_Dis(void)
disables Baud-rate generator (UART2).
Definition: uart.h:243
INLINE void Field_Wrt8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:331
#define SCU_MODIEN2_TIEN2_Msk
Definition: tle986x.h:8990
INLINE void UART2_Buffer_Set(uint8 data)
Sends a Byte via UART2.
Definition: uart.h:319
#define UART2_SBUF_VAL_Pos
Definition: tle986x.h:9893
void UART1_BaudRate_Set(uint32 baudrate)
Sets the baudrate of UART1.
#define UART1_SCONCLR_TICLR_Msk
Definition: tle986x.h:9885
INLINE void UART1_Send_Byte(uint8 c)
clears the UART1 Transmit interrupt and sends a Byte via UART1.
Definition: uart.h:942