DAQ PCI-FRM01 Manual do Utilizador Página 5

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 12
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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:
Vista de página 4
1 2 3 4 5 6 7 8 9 10 11 12

Comentários a estes Manuais

Sem comentários