[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

Command         Operation
-------         ----------
CMD_FLUSH       Remove all queued requests for the printer device.  Does
                not affect active requests.

CMD_RESET       Reset the printer device to its initialized state.  All
                active and queued I/O requests will be aborted.

CMD_START       Restart all paused I/O requests

CMD_STOP        Pause all active and queued I/O requests.

CMD_WRITE       Write out a stream of characters to the printer device.
                The number of characters can be specified or a
                NULL-terminated string can be sent.

PRD_DUMPRPORT   Dump the specified RastPort to a graphics printer.

PRD_PRTCOMMAND  Send a command to the printer.

PRD_QUERY       Return the status of the printer port's lines and

PRD_RAWWRITE    Send unprocessed output to the the printer.

Exec Functions as Used in This Chapter
AbortIO()       Abort a command to the printer device.

CloseDevice()   Relinquish use of the printer device.  All requests must
                be complete before closing.

DoIO()          Start a command and wait for completion (synchronous

OpenDevice()    Obtain use of the printer device.

SendIO()        Start a command and return immediately (asynchronous

WaitIO()        Wait for the completion of an asynchronous request.  When
                the request is complete, the message will be removed from
                the printer message port.

Exec Support Functions as Used in This Chapter
CreatePort()    Create a signal message port for reply messages from the
                audio device.  Exec will signal a task when a message
                arrives at the reply port.

CreateExtIO()   Create an I/O request structure of type printerIO.  This
                structure will be used to send commands to the printer

DeletePort()    Delete the message port created by CreatePort().

DeleteExtIO()   Delete an I/O request structure created by CreateExtIO().

[Back to Amiga Developer Docs]