VxWorks API Reference : USB libraries

usbTargPrnLib [USB]

NAME

usbTargPrnLib [USB] - USB printer target exerciser/demonstration

ROUTINES

usbTargPrnCallbackInfo( ) - returns usbTargPrnLib callback table
usbTargPrnDataInfo( ) - returns buffer status/info
usbTargPrnDataRestart( ) - restarts listening ERP

DESCRIPTION

This module contains code to exercise the usbTargLib by emulating a rudimentary USB printer. This module will generally be invoked by usbTool or a similar USB test/exerciser application.

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 usbTargPrnCallbackInfo( ). It is not necessary to initialize the usbTartPrnLib or to shut it down. It performs all of its operations in response to callbacks from usbTargLib.

This module also exports a function, usbTargPrnBfrInfo( ), which allows a test application to retrieve the current status of the bulk output buffer.


USB libraries : Routines

usbTargPrnCallbackInfo( )

NAME

usbTargPrnCallbackInfo( ) - returns usbTargPrnLib callback table

SYNOPSIS

VOID usbTargPrnCallbackInfo
    (
    pUSB_TARG_CALLBACK_TABLE * ppCallbacks,
    pVOID *                    pCallbackParam
    )

DESCRIPTION

RETURNS

N/A

SEE ALSO

usbTargPrnLib


USB libraries : Routines

usbTargPrnDataInfo( )

NAME

usbTargPrnDataInfo( ) - returns buffer status/info

SYNOPSIS

STATUS usbTargPrnDataInfo
    (
    pUINT8 * ppBfr,
    pUINT16  pActLen
    )

DESCRIPTION

RETURNS

OK if buffer has valid data, else ERROR

SEE ALSO

usbTargPrnLib


USB libraries : Routines

usbTargPrnDataRestart( )

NAME

usbTargPrnDataRestart( ) - restarts listening ERP

SYNOPSIS

STATUS usbTargPrnDataRestart (void)

DESCRIPTION

RETURNS

OK, or ERROR if unable to re-initiate ERP

SEE ALSO

usbTargPrnLib