On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
RTUSB-32 Programming Manual
RTUSB-32 Reference Manual
Introduction
Initialization
Device Query
Device Configuration
Pipe I/O
Message Queues
Keyboard Class Driver
Mouse Class Driver
Touch Screen Driver
Printer Class Driver
Function USBPrinter
Function USBPrinterInfo
Function USBPrinterStatus
Function USBPrinterInit
Function USBPrintData
Function USBPrintCancel
Mass Storage Class Driver
AX772 USB-Ethernet Driver
AX172 USB-Ethernet Driver
CDC ECM USB-Ethernet Driver
Audio Class Driver
Media Transfer Protocol Class Driver
RTUSB-32 Error Codes and Diagnostics
|
Function USBPrinterStatus
USBPrinterStatus returns status information about a USB printer:
BYTE USBPrinterStatus(int PrinterIndex);
ParametersPrinterIndexIndex of the USB printer to query in the range 0 to 3.
return valueStatus bit map of the printer. A combination of the following bits can be returned:
Value |
Meaning |
USB_PRN_OUT_OF_PAPER |
The printer is out of paper. |
USB_PRN_SELECTED |
A printer is attached to the port. |
USB_PRN_IO_ERROR |
An I/O error has occurred while sending data to the printer or no printer is attached. |
USB_PRN_TIMEOUT |
A timeout has occurred while sending data to the printer. This value will not actually be returned by function USBPrinterStatus, but USBPrintData can return it. |
Not all USB printers supply all status bits. The only bits an application should rely on are USB_PRN_SELECTED and USB_PRN_TIMEOUT.
Function USBPrinterInfo
Function USBPrinterInit
|