Usbio Device And Pipe Objects Example - Motorola USB08 Reference Manual

Universal serial bus evaluation board using the mc68hc908jb8
Table of Contents

Advertisement

USB08 Evaluation Board
MOTOROLA
Handle1
User Mode
Kernel Mode
Figure E-2. USBIO Device and Pipe Objects Example
The device object is identified by a device name as described in
E.4.1.1 USBIO Device
endpoint address that also includes the direction flag at bit 7 (MSB). Pipe
0x81 is an IN pipe (transfer direction from device to host) and pipe 0x02
is an OUT pipe (transfer direction from host to device). The application
has created three handles for the device by calling CreateFile().
Handle1 is not bound to any pipe, therefore it can be used to perform
device-related operations only. It is called a device handle.
Handle2 is bound to the IN pipe 0x81. By using this handle with the
Win32 function ReadFile() the application can initiate data transfers
from endpoint 0x81 to its buffers.
Handle3 is bound to the OUT pipe 0x02. By using Handle3 with the
function WriteFile() the application can initiate data transfers from its
buffers to endpoint 0x02 of the device.
Universal USB Device Driver (USBIO)
Universal USB Device Driver (USBIO)
Application
Handle2
Pipe 0x81
Device Object
identified by device name
Objects. A pipe object is identified by its
Architecture
Handle3
Pipe 0x02
Designer Reference Manual
143

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68hc908jb8

Table of Contents