
PT-20 Programming Guide
Read specific number of bytes from USB port.
int USBRead(unsigned char *rbuf, unsigned int rLength);
int k;
unsigned char ausBuf[12];
k = USBRead(ausBuf, 10);
_printf("Read %d characters => %s", k, ausBuf);
The function can write specific number of bytes from USB port.
The USBRead function returns the number characters from the PC site
Write specific number of bytes to USB port.
void USBWrite(unsigned char *wbuf, unsigned int wLength);
USBWrite("0123456789", 10);
The function can write specific number of bytes to USB port.
Kommentare zu diesen Handbüchern