stepRocker Open Source TMCL
1.00
|
USB functions. More...
#include "derivative.h"
#include "stepRocker.h"
#include "USB_CDC/CDC1.h"
#include "USB_CDC/USB0.h"
#include "USB_CDC/USB1.h"
#include "USB_CDC/Tx1.h"
#include "USB_CDC/Rx1.h"
#include "USB_CDC/usb_cdc.h"
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 communication functions.
DeInitUSB | ( | void | ) |
Switch off USB interface.
This function switches off the USB interface and so detaches the module from USB.
GetUSBCmd | ( | UCHAR * | Cmd | ) |
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.
InitUSB | ( | void | ) |
Initialize USB interface.
This function initializes the USB interface.
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.