35 lines
1.7 KiB
HTML
35 lines
1.7 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
||
|
<!--Converted with LaTeX2HTML 96.1-c (Feb 29, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>9.3 Printer Programming</TITLE>
|
||
|
<META NAME="description" CONTENT="9.3 Printer Programming">
|
||
|
<META NAME="keywords" CONTENT="lpg">
|
||
|
<META NAME="resource-type" CONTENT="document">
|
||
|
<META NAME="distribution" CONTENT="global">
|
||
|
<LINK REL=STYLESHEET HREF="lpg.css">
|
||
|
</HEAD>
|
||
|
<BODY LANG="EN">
|
||
|
<A NAME="tex2html2009" HREF="node135.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME="tex2html2007" HREF="node131.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME="tex2html2001" HREF="node133.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME="tex2html2011" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <BR>
|
||
|
<B> Next:</B> <A NAME="tex2html2010" HREF="node135.html">9.4 Joystick Programming</A>
|
||
|
<B>Up:</B> <A NAME="tex2html2008" HREF="node131.html">9 Programming I/O ports</A>
|
||
|
<B> Previous:</B> <A NAME="tex2html2002" HREF="node133.html">9.2 Modem Programming</A>
|
||
|
<BR> <P>
|
||
|
<H1><A NAME="SECTION001030000000000000000">9.3 Printer Programming</A></H1>
|
||
|
<P>
|
||
|
See example checklp.c<BR>
|
||
|
Don't use termios to control printer port.
|
||
|
Use ioctl and inb/outb if necessary.<BR>
|
||
|
Use Epson, Postscript, PCL, etc. commands to control printer.<BR>
|
||
|
<<I>linux</I>/<I>lp</I>.<I>h</I>><BR>
|
||
|
ioctl calls: LPCHAR, LPTIME, LPABORT, LPSETIRQ, LPGETIRQ, LPWAIT<BR>
|
||
|
inb/outb for status and control port.
|
||
|
<P>
|
||
|
<BR> <HR>
|
||
|
<P><ADDRESS>
|
||
|
<I>Converted on: <BR>
|
||
|
Fri Mar 29 14:43:04 EST 1996</I>
|
||
|
</ADDRESS>
|
||
|
</BODY>
|
||
|
</HTML>
|