Argox PA-20 Programming Guide Uživatelský manuál Strana 95

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 130
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 94
PT-20 Programming Guide
93
USB_Read
Purpose
Read specific number of bytes from USB port.
Syntax
int USBRead(unsigned char *rbuf, unsigned int rLength);
Example call
int k;
unsigned char ausBuf[12];
k = USBRead(ausBuf, 10);
_printf("Read %d characters => %s", k, ausBuf);
Includes
#include “SDK.h ”
Description
The function can write specific number of bytes from USB port.
Returns
The USBRead function returns the number characters from the PC site
USB_Write
Purpose
Write specific number of bytes to USB port.
Syntax
void USBWrite(unsigned char *wbuf, unsigned int wLength);
Example call
USBWrite("0123456789", 10);
Includes
#include “SDK.h ”
Description
The function can write specific number of bytes to USB port.
Returns
None
Zobrazit stránku 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 129 130

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

Žádné komentáře