stepRocker Open Source TMCL  1.00
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Functions
USB.c File Reference

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"
Include dependency graph for USB.c:

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...
 

Detailed Description

USB functions.

Author
Trinamic Motion Control GmbH & Co KG
Version
2.20

This file contains high level USB communication functions.

Function Documentation

DeInitUSB ( void  )

Switch off USB interface.

This function switches off the USB interface and so detaches the module from USB.

Here is the caller graph for this function:

GetUSBCmd ( UCHAR Cmd)

Read TMCL command from USB.

Parameters
*CmdPointer to nine byte char array
Returns
TRUE if nine bytes have been read

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.

Here is the caller graph for this function:

InitUSB ( void  )

Initialize USB interface.

This function initializes the USB interface.

Here is the caller graph for this function:

SendUSBReply ( UCHAR Reply)

Send nine bytes via USB.

Parameters
*ReplyPointer to nine byte array

This function sends nine byte (a TMCL reply) out via USB.

Here is the caller graph for this function: