USBIO Driver for Windows CE - Thesycon Systemsoftware ...
USBIO Driver for Windows CE - Thesycon Systemsoftware ...
USBIO Driver for Windows CE - Thesycon Systemsoftware ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3 Programming Interface<br />
3 Programming Interface<br />
This section describes the programming interface of the <strong>USBIO</strong> device driver in detail. The programming<br />
interface is based on Win32 functions.<br />
3.1 <strong>USBIO</strong> Class Library Overview<br />
The <strong>USBIO</strong> Class Library (<strong>USBIO</strong>LIB) contains classes which provide wrapper functions <strong>for</strong><br />
all of the features supported by the <strong>USBIO</strong> programming interface. Using these classes in an<br />
application is more convenient than using the <strong>USBIO</strong> interface directly. The classes are designed<br />
to be capable of being extended. In order to meet the requirements of a particular application new<br />
classes may be derived from the existing ones. The class library is provided fully in source code.<br />
The following figure shows the classes included in the <strong>USBIO</strong>LIB and their relations.<br />
CUsbIoReader<br />
3.1.1 CUsbIo Class<br />
CUsbIo<br />
CUsbIoPipe<br />
CUsbIoThread<br />
CUsbIoWriter<br />
Figure 1: <strong>USBIO</strong> Class Library<br />
CUsbIoBuf CUsbIoBufPool<br />
The class CUsbIo implements the basic interface to the <strong>USBIO</strong> device driver. It includes all<br />
functions that are related to a <strong>USBIO</strong> device object. Thus, by using an instance of the CUsbIo<br />
class all operations which do not require a pipe context can be per<strong>for</strong>med.<br />
The CUsbIo class supports device enumeration and an Open() function that is used to connect<br />
an instance of the class to a <strong>USBIO</strong> device object. The handle that represents the connection is<br />
stored inside the class instance. It is used <strong>for</strong> all subsequent requests to the device.<br />
For each device-related operation the <strong>USBIO</strong> driver supports, a member function exists in the<br />
CUsbIo class. The function takes the parameters that are required <strong>for</strong> the operation and returns<br />
the status that is reported by the <strong>USBIO</strong> driver.<br />
22 <strong>USBIO</strong> <strong>Driver</strong> <strong>for</strong> <strong>Windows</strong> <strong>CE</strong>