
Application Note (AN312)
eCARD-FRM11 board API Programming
2005 DAQ system, all rights reserved.
http://www.daqsystem.com
Overview
UART APIs
BOOL UART_Init(void)
BOOL UART_GetData(DWORD* nCnt, unsigned char* buf)
BOOL UART_SendData(DWORD* nCnt, unsigned char* buf)
BOOL UART_Close(void)
BOOL UART_SetBaud(DWORD nBaud)
BOOL UART_BufferFlush(void)
UART_Init
Initialize resources used for the UART sub-system, for example interrupt and UART control register
BOOL UART_Init(void)
Parameters:
None
Return Value:
If the function succeeds, it returns TRUE.
UART_GetData
Receive characters through the differential UART
BOOL UART_GetData(DWORD* nCnt, unsigned char* buf)
Parameters:
nCnt :
The address which contains the number of characters to be received.
The maximum number of characters to be received is limited to 4Kbyte(4096).
buf :
The buffer address.
Return Value:
If the function succeeds, it returns TRUE.
UART _SendData
Sent characters through the differential UART
BOOL UART_SendData(DWORD* nCnt, unsigned char* buf)
Parameters:
Comentarios a estos manuales