Universal USB Device Driver (USBIO)
Architecture
USB08 Evaluation Board
Designer Reference Manual
MOTOROLA
Universal USB Device Driver (USBIO)
143
Figure E-2. USBIO Device and Pipe Objects Example
The device object is identified by a device name as described in
. A pipe object is identified by its
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.
User Mode
Kernel Mode
Handle1
Handle2
Handle3
Application
Device Object
identified by device name
Pipe 0x81
Pipe 0x02
Содержание MC68HC908JB8
Страница 2: ...blank ...
Страница 6: ...Designer Reference Manual USB08 Evaluation Board 6 List of Sections MOTOROLA List of Sections ...
Страница 16: ...Designer Reference Manual USB08 Evaluation Board 16 List of Tables MOTOROLA List of Tables ...
Страница 42: ...Designer Reference Manual USB08 Evaluation Board 42 Hardware Description MOTOROLA Hardware Description ...
Страница 88: ...Designer Reference Manual USB08 Evaluation Board 88 USB08 Descriptors MOTOROLA USB08 Descriptors ...
Страница 243: ...blank ...