home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / uupoll068.lha / misc / uupoll067.lha / src / serio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-16  |  652 b   |  19 lines

  1.  
  2. #include <exec/types.h>
  3.  
  4. struct SerialHandle *CreateSerialHandle(LONG Unit, UBYTE Flags);
  5. void DeleteSerialHandle(struct SerialHandle *Handle);
  6. ULONG GetSerialStatus(struct SerialHandle *Handle);
  7. int SetSerialParameters(struct SerialHandle *Handle, ULONG Baud, UBYTE Flags);
  8. ULONG ReadSerial(struct SerialHandle *Handle, unsigned char *Buffer, ULONG Size);
  9. ULONG WriteSerial(struct SerialHandle *Handle, unsigned char *Buffer, ULONG Size);
  10. ULONG GetSerial(struct SerialHandle *Handle);
  11. ULONG PutSerial(unsigned char c, struct SerialHandle *Handle);
  12.  
  13. struct SerialHandle {
  14.     struct IOExtSer    *sh_SerialIO;
  15.     struct MsgPort    *sh_Port;
  16.     UWORD sh_Status;
  17. };
  18.  
  19.