stepRocker Open Source TMCL
1.00
|
USB functions. More...
Go to the source code of this file.
Functions | |
void | InitUSB (void) |
Initialize USB interface. More... | |
UCHAR | GetUSBCmd (UCHAR *Cmd) |
Read TMCL command from USB. More... | |
void | SendUSBReply (UCHAR *Reply) |
Send nine bytes via USB. More... | |
void | DeInitUSB (void) |
Switch off USB interface. More... | |
USB functions.
This file contains high level USB functions.
void DeInitUSB | ( | void | ) |
Switch off USB interface.
This function switches off the USB interface and so detaches the module from USB.
Read TMCL command from USB.
*Cmd | Pointer to nine byte char array |
This function tries to read nine bytes from the USB interface (one TMCL command). If there are more than nine bytes in the USB receive buffer then these bytes will be discarded.
void InitUSB | ( | void | ) |
Initialize USB interface.
This function initializes the USB interface.
void SendUSBReply | ( | UCHAR * | Reply | ) |
Send nine bytes via USB.
*Reply | Pointer to nine byte array |
This function sends nine byte (a TMCL reply) out via USB.