Argox PA-20 Programming Guide User Manual Page 95

  • Download
  • Add to my manuals
  • Print
  • Page
    / 130
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 129 130

Comments to this Manuals

No comments