E.6 usbio class library, E.6.1 cusbio class, Usbio class library – Motorola USB08 User Manual

Page 220: E.6.1, Cusbio class, E.6 usbio class library e.6.1

Advertising
background image

Designer Reference Manual

USB08 Evaluation Board

220

Universal USB Device Driver (USBIO)

MOTOROLA

Universal USB Device Driver (USBIO)

E.6 USBIO Class Library

The USBIO Class Library (USBIOLIB) contains classes which provide
wrapper functions for all of the features supported by the USBIO
programming interface. Using these classes in an application is more
convenient than using the USBIO interface directly. The classes are
designed to be capable of being extended. In order to meet the
requirements of a particular application new classes may be derived
from the existing ones. The class library is provided fully in source code.

Figure E-4

shows the classes included in the USBIOLIB and their

relations.

Figure E-4. USBIO Class Library

E.6.1 CUsbIo Class

The class

CUsbIo

implements the basic interface to the USBIO device

driver. It includes all functions that are related to an USBIO device
object. Thus, by using an instance of the

CUsbIo

class all operations

which do not require a pipe context can be performed.

The

CUsbIo

class supports device enumeration and an

Open

function

that is used to connect an instance of the class to an USBIO device
object. The handle that represents the connection is stored inside the
class instance. It is used for all subsequent requests to the device.

CUsbIoPipe

CUsbIoThread

CUsbIo

CUsbIoReader

CUsbIoWriter

CUsbIoBuf

CUsbIoBufPool

Advertising