VxWorks API Reference : USB libraries
usbTargPrnLib [USB] - USB printer target exerciser/demonstration
usbTargPrnCallbackInfo( ) - returns usbTargPrnLib callback table
usbTargPrnDataInfo( ) - returns buffer status/info
usbTargPrnDataRestart( ) - restarts listening ERP
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.
usbTargPrnCallbackInfo( ) - returns usbTargPrnLib callback table
VOID usbTargPrnCallbackInfo ( pUSB_TARG_CALLBACK_TABLE * ppCallbacks, pVOID * pCallbackParam )
N/A
usbTargPrnDataInfo( ) - returns buffer status/info
STATUS usbTargPrnDataInfo ( pUINT8 * ppBfr, pUINT16 pActLen )
OK if buffer has valid data, else ERROR
usbTargPrnDataRestart( ) - restarts listening ERP
STATUS usbTargPrnDataRestart (void)
OK, or ERROR if unable to re-initiate ERP