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

Command          Operation
-------          ---------
cmd_flush        purge all queued requests for the parallel device.  does
                 not affect active requests.

cmd_read         read a stream of characters from the parallel port.  the
                 number of characters can be specified or a termination
                 character(s) can be used.

cmd_reset        reset the parallel port to its initialized state.  all
                 active and queued I/O requests will be aborted.

cmd_start        restart all paused i/o over the parallel port.
                 Reactivates the handshaking sequence.

cmd_stop         pause all active i/o over the parallel port.  deactivates
                 the handshaking sequence.

cmd_write        write out a stream of characters to the parallel port.
                 The number of characters can be specified or a
                 NULL-terminated string can be sent.

pdcmd_query      return the status of the parallel port lines and
                 registers.

pdcmd_setparams  set the parameters of the parallel port.


Exec Functions as Used in This Chapter
--------------------------------------
abortio()        abort a command to the parallel device. if the command is
                 in progress, it is stopped immediately.  If it is queued,
                 it is removed from the queue.

beginio()        initiate a command and return immediately (asynchronous
                 request).  This is used to minimize the amount of system
                 overhead.

checkio()        determine the current state of an i/o request.

closedevice()    relinquish use of the parallel device.  all requests must
                 be complete.

doio()           initiate a command and wait for completion (synchronous
                 request).

opendevice()     obtain use of the parallel device.

sendio()         initiate a command and return immediately (asynchronous
                 request).

waitio()         wait for the completion of an asynchronous request.  when
                 the request is complete the message will be removed from
                 your reply port.


Exec Support Functions as Used in This Chapter
----------------------------------------------
createextio()    create an extended i/o request structure of type
                 IOExtPar.  This structure will be used to communicate
                 commands to the parallel device.

createport()     create a signal message port for reply messages from the
                 parallel device.  Exec will signal a task when a message
                 arrives at the port.

deleteextio()    delete an extended i/o request structure created by
                 CreateExtIO().

deleteport()     delete the message port created by createport().