On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTTarget-32 Programming Manual
RTTarget-32 Reference Manual
Introduction
RTTarget-32 Configuration
Screen I/O
Interrupt Handling
Port I/O
System Functions
Program Loading
Memory Mapping and Management
Real-Time Clock and CMOS RAM
Keyboard
Mouse and Touch Screen Driver
Parallel Port Printer
Function RTPrinterSetIOBase
Function RTPrinterInit
Function RTPrinterStatus
Function RTPrintByte
Serial Port I/O
PCI BIOS
Plug-and-Play BIOS
PC Cards (PCMCIA)
MetaWINDOW Initialization
Run-Time System Support
System Management BIOS (SMBIOS)
Advanced Programmable Interrupt Controller (APIC)
Multiprocessor Management
Spinlocks
Advanced Configuration and Power Interface (ACPI) Tables
Extended RAM Management
RTVmf-32
RTRth-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
|
Function RTPrinterStatus
Function RTPrinterStatus returns the current status of a printer:
BYTE RTPrinterStatus(int Port);
ParametersPortMust be one of the values RT_LPT1, RT_LPT2, RT_LPT3, or RT_LPT4.
return valueA standard BIOS parallel port status byte. The following bits can be set:
Value |
Meaning |
RT_LPT_READY |
The printer is ready. |
RT_LPT_ACK |
The printer has acknowledged data. |
RT_LPT_OUT_OF_PAPER |
The printer is out of paper. |
RT_LPT_SELECTED |
The printer is selected. |
RT_LPT_IO_ERROR |
An error occurred sending to the printer. This error is also returned if the parallel port is not installed. |
RT_LPT_TIMEOUT |
A timeout error occurred while sending data to the printer. |
Function RTPrinterInit
Function RTPrintByte
|