next up previous contents
Next: 9.4 Joystick Programming Up: 9 Programming I/O ports Previous: 9.2 Modem Programming

9.3 Printer Programming

See example checklp.c
Don't use termios to control printer port. Use ioctl and inb/outb if necessary.
Use Epson, Postscript, PCL, etc. commands to control printer.
<linux/lp.h>
ioctl calls: LPCHAR, LPTIME, LPABORT, LPSETIRQ, LPGETIRQ, LPWAIT
inb/outb for status and control port.



Converted on:
Fri Mar 29 14:43:04 EST 1996

Hosting by: Hurra Communications Ltd.
Generated: 2007-01-26 17:57:42