Link here

UART Function Summary


This C language subject-sorted list itemizes the constants and driver functions associated with the UART (Universal Asynchronous Receiver Transmitter) Wildcard.

The UART Wildcard implements two full-duplex serial ports that can be configured for RS232, RS422, and RS485 protocols to implement the communications links that are often needed in instrument control applications. This tiny 2" by 2.5" board is a member of the Wildcard™ series that connects to Mosaic's line of microcontroller-based embedded computers. A UART chip (sometimes called a USART) on the Wildcard implements the conversion between the parallel Wildcard bus and the RS232 and RS485 asynchronous serial links. The UART Wildcard makes it easy to add serial communications links to implement instrumentation and automation solutions.

Configuration Functions
int Read_UART_Number ( void )
void Set_Baud ( uint baudrate, int channel, int module )
void Set_Data_Format ( int numbits, int stopBits, int parity, int channel, int module )
void Set_UART_Number ( int module )
int Set_Protocols ( int ch1_modem, int ch1_protocol, int ch2_protocol, int module )
Constants
CHANNEL1 CHANNEL2
EVEN_PARITY ODD_PARITY
LOW_PARITY HIGH_PARITY
NOT_USED NO_PARITY
RS232 RS422
RS485
RS485 Direction Control
void RS485_Rcv_UART ( int channel_num, int module_num )
void RS485_Rcv_When_Xmit_Done ( int channel_num, int module_num )
void RS485_Xmit_UART ( int channel_num, int module_num )
Serial I/O Primitives
int Ask_Key_UART ( int channel_num, int module_num )
int Ch1_Ask_Key ( void )
void Ch1_Emit ( uchar character )
uchar Ch1_Key ( void )
int Ch2_Ask_Key ( void )
void Ch2_Emit ( uchar character )
uchar Ch2_Key ( void )
void Emit_UART ( uchar character, int channel_num, int module_num )
uchar Key_UART ( int channel_num, int module_num )
Utility Functions
void End_Break ( int channel_num, int module_num )
void Is_DTR ( int desired_state, int module_num )
void Is_RTS ( int desired_state, int module_num )
int Read_CTS ( int module_num )
int Read_DCD ( int module_num )
int Read_DSR ( int module_num )
void Send_Break ( int channel_num, int module_num )
void Wait_Until_Xmit_Done ( int channel_num, int module_num )
Demonstration Program Constants
DEFAULT_BAUDRATE DEFAULT_MODEM_SUPPORT
DEFAULT_PROTOCOL UART_MODULE_NUM
DEFAULT_BITS_PER_CHAR DEFAULT_PARITY
DEFAULT_STOP_BITS
Demonstration Program Functions
int Default_UART_Init ( int module_num )
void Run_Demo ( void )
 
This page is about: C Language Functions for RS232 RS422 RS485 Serial Communications – This C language subject-sorted list itemizes the constants and library functions associated with the UART (Universal Asynchronous Receiver Transmitter) Wildcard.
 
 
Navigation