/** * EUSART1 Generated Driver API Header File * * @file eusart1.h * * @defgroup eusart1 EUSART1 * * @brief This file contains API prototypes and other datatypes for the Enhanced Universal Synchronous and Asynchronous Receiver Transceiver (EUSART) module. * * @version EUSART1 Driver Version 3.0.2 */ /* © [2025] Microchip Technology Inc. and its subsidiaries. Subject to your compliance with these terms, you may use Microchip software and any derivatives exclusively with Microchip products. You are responsible for complying with 3rd party license terms applicable to your use of 3rd party software (including open source software) that may accompany Microchip software. SOFTWARE IS ?AS IS.? NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. */ #ifndef EUSART1_H #define EUSART1_H #include #include #include "../system/system.h" #include "uart_drv_interface.h" #ifdef __cplusplus // Provide C++ Compatibility extern "C" { #endif #define UART1_interface UART1 #define UART1_Initialize EUSART1_Initialize #define UART1_Deinitialize EUSART1_Deinitialize #define UART1_Write EUSART1_Write #define UART1_Read EUSART1_Read #define UART1__IsRxReady EUSART1_IsRxReady #define UART1_IsTxReady EUSART1_IsTxReady #define UART1_IsTxDone EUSART1_IsTxDone #define UART1_TransmitEnable EUSART1_TransmitEnable #define UART1_TransmitDisable EUSART1_TransmitDisable #define UART1_AutoBaudSet EUSART1_AutoBaudSet #define UART1_AutoBaudQuery EUSART1_AutoBaudQuery #define UART1_BRGCountSet (NULL) #define UART1_BRGCountGet (NULL) #define UART1_BaudRateSet (NULL) #define UART1_BaudRateGet (NULL) #define UART1__AutoBaudEventEnableGet (NULL) #define UART1_ErrorGet EUSART1_ErrorGet #define UART1_TxCompleteCallbackRegister (NULL) #define UART1_RxCompleteCallbackRegister (NULL) #define UART1_TxCollisionCallbackRegister (NULL) #define UART1_FramingErrorCallbackRegister EUSART1_FramingErrorCallbackRegister #define UART1_OverrunErrorCallbackRegister EUSART1_OverrunErrorCallbackRegister #define UART1_ParityErrorCallbackRegister (NULL) #define UART1_EventCallbackRegister (NULL) /** @ingroup eusart1 @struct eusart1_status_t @brief This is a structure defined for errors in reception of data. */ /** * @misradeviation{@advisory,19.2} * The UART error status necessitates checking the bitfield and accessing the status within the group byte therefore the use of a union is essential. */ /* cppcheck-suppress misra-c2012-19.2 */ typedef union { struct { uint8_t perr : 1; /**