GEOS SDK TechDocs
|
|
3.1 Initializing a Parallel Port
|
3.3 Closing a Parallel Port
ParallelWrite(), ParallelWriteByte()
Writing to a parallel port is much like writing to any other stream. To write data, call
ParallelWrite()
or
ParallelWriteByte()
. These routines take the same arguments as their
Stream...()
components, except that each one must be passed the handle of the Parallel Driver, not the Stream Driver, and each routine is passed the
ParallelUnit
for the appropriate port, instead of being passed a stream token. These routines behave exactly like their
Stream...()
counterparts.
To send an error to the other side of a serial connection, call
ParallelSetError()
. (This routine is generally not called by applications.) This routine behaves much like
StreamSetError()
. It is passed four arguments:
GeodeHandle
of the parallel-port driver.
ParallelUnit
enumerated type.
StreamRoles
enumerated type.
ParallelError
record. This word-sized record has the following flags:
To read an error condition passed by the other side of a serial connection, call
ParallelGetError()
. This routine behaves much like
StreamGetError()
. The error code returned will be a member of the
ParallelError
enumerated type.
GEOS SDK TechDocs
|
|
3.1 Initializing a Parallel Port
|
3.3 Closing a Parallel Port