UBYTE io_StopBits /* number of stopbits for read */ UBYTE io_WriteLen /* number of bits per write character */ UBYTE io_ReadLen /* number of bits per read character */ ULONG io_BrkTime /* duration of break in microseconds */ struct iOTArray io_TermArray /* termination character array */ ULONG io_ExtFlags /* additional serial flags */ ULONG io_RBufLen /* length in bytes of serial read buffer */ ULONG io_CtlChar /* control characters */ The I/O request used by the serial device is called IOExtSer. See Exec Device I/O for general information on device usage. To use it, you must first open the serial device, then send I/O requests to it, and then close it when finished. The serial device operates like the other Amiga devices. This ranges from baud rate to number of microseconds a break will last. Return the status of the serial port lines and registers, and the number of bytes in the serial port’s read buffer. Duration of the break (in microseconds) can be set by the application. The number of characters can be specified or a NULL-terminated string can be sent. Write out a stream of characters to the serial port. Pause all active I/O over the serial port. Restart all paused I/O over the serial port. All active and queued I/O requests will be aborted and the current buffer will be released. Reset the serial port to its initialized state. The number of characters can be specified or a termination character(s) used. Read a stream of characters from the serial port buffer. Purge all queued requests for the serial device (does not affect active requests). Reset the serial port’s read buffer pointers. Serial Device Commands and Functions Command The serial device is based on the conventions of Exec device I/O, with extensions for parameter setting and control. The same device interface can be used for additional “byte stream oriented devices”-usually more serial ports. Serial ports have a wide range of uses, including communication with modems, printers, MIDI devices, and other computers. The serial device provides a hardware-independent interface to the Amiga’s built-in RS-232C compatible serial port.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |