DAQ PCI-FRM01 Uživatelský manuál Strana 5

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 12
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 4
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:
Zobrazit stránku 4
1 2 3 4 5 6 7 8 9 10 11 12

Komentáře k této Příručce

Žádné komentáře