//**************************************************************************** // @Module UART1 (Serial Interface) // @Filename UART1.H // @Project CL2.0.dav //---------------------------------------------------------------------------- // @Controller Infineon XC886CLM-8FF // // @Compiler Keil // // @Codegenerator 1.3 // // @Description: This file contains all function prototypes and macros for // the UART1 module. // //---------------------------------------------------------------------------- // @Date 2024/10/31 19:17:02 // //**************************************************************************** // USER CODE BEGIN (UART1_Header,1) // USER CODE END #ifndef _UART1_H_ #define _UART1_H_ //**************************************************************************** // @Project Includes //**************************************************************************** // USER CODE BEGIN (UART1_Header,2) // USER CODE END //**************************************************************************** // @Macros //**************************************************************************** // USER CODE BEGIN (UART1_Header,3) // USER CODE END //**************************************************************************** // @Defines //**************************************************************************** // USER CODE BEGIN (UART1_Header,4) // USER CODE END //**************************************************************************** // @Typedefs //**************************************************************************** // USER CODE BEGIN (UART1_Header,5) // USER CODE END //**************************************************************************** // @Imported Global Variables //**************************************************************************** // USER CODE BEGIN (UART1_Header,6) // USER CODE END //**************************************************************************** // @Global Variables //**************************************************************************** // USER CODE BEGIN (UART1_Header,7) // USER CODE END //**************************************************************************** // @Prototypes Of Global Functions //**************************************************************************** void UART1_vInit(void); ubyte UART1_ubGetData8(void); void UART1_vSendData8(ubyte ubData); // USER CODE BEGIN (UART1_Header,8) // USER CODE END //**************************************************************************** // @Macro UART1_vRxEnable() // //---------------------------------------------------------------------------- // @Description This macro releases the receive function of the UART1 by // setting bit REN_1. // //---------------------------------------------------------------------------- // @Returnvalue None // //---------------------------------------------------------------------------- // @Parameters None // //---------------------------------------------------------------------------- // @Date 2024/10/31 // //**************************************************************************** // RMAP should be set before calling this macro. #define UART1_vRxEnable() REN_1 = 1 //**************************************************************************** // @Macro UART1_vRxDisable() // //---------------------------------------------------------------------------- // @Description This macro disables the receive function of the UART1 by // clearing bit REN_1. // Note: Any data that is currently being received is received // to completion, including the setting of interrupt flag RI_1. // //---------------------------------------------------------------------------- // @Returnvalue None // //---------------------------------------------------------------------------- // @Parameters None // //---------------------------------------------------------------------------- // @Date 2024/10/31 // //**************************************************************************** // RMAP should be set before calling this macro. #define UART1_vRxDisable() REN_1 = 0 //**************************************************************************** // @Interrupt Vectors //**************************************************************************** // USER CODE BEGIN (UART1_Header,9) // USER CODE END #endif // ifndef _UART1_H_