DAQ PCI-FRM01 Manuel d'utilisateur Page 5

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 12
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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:
Vue de la page 4
1 2 3 4 5 6 7 8 9 10 11 12

Commentaires sur ces manuels

Pas de commentaire