USB Design by Example: A Practical Guide to Building I/O Devices, Second Edition

In this chapter we ll write two example PC host programs, both of which will prepare us for writing our application program in Chapter 7.
Example 1: This will be a USB Device Display program that extracts and displays all of the descriptors (introduced in the previous chapters) from all of the devices currently attached via the USB bus. The program does this by searching for devices on the USB bus, so we ll learn valuable techniques for low-level USB activity.
Example 2: This will be an HID Display program that searches for and displays information on the currently installed HIDs. The program uses a high-level file-style access to the I/O devices, so that we focus on the information transferred between the PC host and the I/O device and not on the details within the USB packets.
This chapter is, in fact, in three sections. You are currently in Section A, which is the introduction. Section B implements the examples in Visual Basic (B = Basic), as implemented in the first edition of this book but with some bug fixes. Section C implements the same examples in Visual C++ (C= C++). I do not expect you to read all of the sections choose the language that you are most familiar with, and read the corresponding section (B or C).
There is also a Section D, but this is only on the CD-ROM. Several helpful readers ported my examples to the Delphi environment (D= Delphi), and their solutions are included on the...