VxWorks API Reference : USB libraries

usbTargPhilipsD12EvalLib [USB]

NAME

usbTargPhilipsD12EvalLib [USB] - emulates Philips PDIUSBD12 eval firmware

ROUTINES

usbTargPhilipsD12EvalCallbackInfo( ) - returns callback table

DESCRIPTION

The Philips PDIUSBD12 evaluation kit is shipped with sample firmware. The "firmware" is a program which runs under MS-DOS and responds to certain standard and "vendor specific" USB requests. A custom Windows application - also provided by Philips - can be used to exercise this "firmware".

In order to provide a different example of working target behavoir, this module emulates the behavoir of the Philips evaluation firmware, allowing this target module to work with the Philips Windows-based exerciser program. The "scan", "print", and "loopback" portions of that test work correctly. The "LED buttons" supported by the Philips firmware are not emulated, and do nothing.

It is the caller's responsibility to initialize usbTargLib and attach a USB TCD to it. When attaching a TCD to usbTargLib, the caller must pass a pointer to a table of callbacks required by usbTargLib. The address of this table and the "callback parameter" required by these callbacks may be obtained by calling usbTargPhilipsD12EvalCallbackInfo( ). It is not necessary to initialize the usbTartPhilipsD12EvalLib or to shut it down. It performs all of its operations in response to callbacks from usbTargLib.


USB libraries : Routines

usbTargPhilipsD12EvalCallbackInfo( )

NAME

usbTargPhilipsD12EvalCallbackInfo( ) - returns callback table

SYNOPSIS

VOID usbTargPhilipsD12EvalCallbackInfo
    (
    pUSB_TARG_CALLBACK_TABLE * ppCallbacks,
    pVOID *                    pCallbackParam
    )

DESCRIPTION

RETURNS

N/A

SEE ALSO

usbTargPhilipsD12EvalLib