Argox PA-20 Programming Guide Manuel d'utilisateur Page 95

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 130
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 129 130

Commentaires sur ces manuels

Pas de commentaire