home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d523 / serlib.lha / SerLib / Examples / Aztec_3.6 / serlib.h < prev    next >
C/C++ Source or Header  |  1991-08-05  |  1KB  |  37 lines

  1. /**********************************************************************\
  2.  *                   SerLib.h   © 1991 G. Glendown                    *
  3.  *                                                                    *
  4.  * This is the Include-File for using SerLib from C.                  *
  5.  * Pragma-Definition only for SAS/C                                   *
  6. \**********************************************************************/
  7.  
  8. #define    ABORT_SEND    1
  9. #define    ABORT_RECV    2
  10.  
  11. struct SerLibdata *OpenSerial();
  12. void CloseSerial();
  13. LONG ChangeData();
  14. LONG WriteSer();
  15. LONG ReadSer();
  16. void GetStatus();
  17. long SerBuffer();
  18. ULONG WaitSer();
  19. BOOL CheckCD();
  20. LONG SendSer();
  21. LONG RecvSer();
  22. LONG AbortIOSer();
  23. BOOL CheckIOSer();
  24. LONG ClearSer();
  25.  
  26. struct SerLibData {
  27.     struct Port     *SerPort;    /* You shouldn't fool 'round with these    */
  28.     struct Port     *SerWPort;    
  29.     struct IOExtSer    *SerReq;    /* babies, they're internal use only!    */
  30.     struct IOExtSer    *SerWReq;
  31. };
  32.  
  33. struct SerStatus {
  34.     ULONG    ss_unread;        /* Number of bytes in the serial buffer    */
  35.     UWORD    ss_status;        /* see io_Status in struct IOExtSer        */
  36. };
  37.