Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

CPU Usart APIs

Steve Maillet edited this page Feb 28, 2016 · 1 revision
CPU USART APIs
BOOL CPU_USART_Initialize( int ComPortNum, int BaudRate, int Parity, int DataBits, int StopBits, int FlowValue );
BOOL CPU_USART_Uninitialize( int ComPortNum );
BOOL CPU_USART_TxBufferEmpty( int ComPortNum );
BOOL CPU_USART_TxShiftRegisterEmpty( int ComPortNum );
void CPU_USART_WriteCharToTxBuffer( int ComPortNum, UINT8 c );
void CPU_USART_TxBufferEmptyInterruptEnable( int ComPortNum, BOOL Enable );
BOOL CPU_USART_TxBufferEmptyInterruptState( int ComPortNum );
void CPU_USART_RxBufferFullInterruptEnable( int ComPortNum, BOOL Enable  );
BOOL CPU_USART_RxBufferFullInterruptState( int ComPortNum );
BOOL CPU_USART_TxHandshakeEnabledState( int comport );
void CPU_USART_ProtectPins( int ComPortNum, BOOL On );
UINT32 CPU_USART_PortsCount( );
void CPU_USART_GetPins( int ComPortNum, GPIO_PIN& rxPin, GPIO_PIN& txPin,GPIO_PIN& ctsPin, GPIO_PIN& rtsPin );
void CPU_USART_GetBaudrateBoundary( int ComPortNum, UINT32 & maxBaudrateHz, UINT32 & minBaudrateHz );
BOOL CPU_USART_SupportNonStandardBaudRate( int ComPortNum );
BOOL CPU_USART_IsBaudrateSupported( int ComPortNum, UINT32& BaudrateHz );

Declared in: USART_decl.h