
Example Applications
Windows subsystem allowing user mode applications to access the USB device without the need
for a vendor-specific kernel mode driver.
A sample Windows command-line application, usb_bulk_example, illustrating how to connect to and
communicate with the bulk device is also provided. The application binary is installed as part of the
“TivaWare for C Series PC Companion Utilities” package (SW-TM4C-USB-WIN) on the installation
CD or via download from
http://www.ti.com/tivaware
. Project files are included to allow
the examples to be built using Microsoft Visual Studio 2008. Source code for this application can
be found in directory ti/TivaWare_C_Series-x.x/tools/usb_bulk_example.
2.19
USB HID Keyboard Device (usb_dev_keyboard)
This example application turns the evaluation board into a USB keyboard supporting the Human
Interface Device class. When the push button is pressed, a sequence of key presses is simulated
to type a string. Care should be taken to ensure that the active window can safely receive the text;
enter is not pressed at any point so no actions are attempted by the host if a terminal window is
used (for example). The status LED is used to indicate the current Caps Lock state and is updated
in response to any other keyboard attached to the same USB host system.
The device implemented by this application also supports USB remote wakeup allowing it to request
the host to reactivate a suspended bus. If the bus is suspended (as indicated on the application dis-
play), pressing the push button will request a remote wakeup assuming the host has not specifically
disabled such requests.
2.20
USB MSC Device (usb_dev_msc)
This example application turns the evaluation board into a USB mass storage class device. The
application will use the microSD card for the storage media for the mass storage device. The
screen will display the current action occurring on the device ranging from disconnected, no media,
reading, writing and idle.
2.21
USB Serial Device (usb_dev_serial)
This example application turns the evaluation kit into a virtual serial port when connected to the USB
host system. The application supports the USB Communication Device Class, Abstract Control
Model to redirect UART0 traffic to and from the USB host system.
Assuming you installed TivaWare in the default directory, a driver information (INF) file for use
with Windows XP, Windows Vista and Windows7 can be found in C:/ti/TivaWare_C_Series-
x.x/windows_drivers.
For Windows 2000, the required INF file is in C:/ti/TivaWare_C_Series-
x.x/windows_drivers/win2K.
February 22, 2017
13