home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / devices / serial.e < prev    next >
Text File  |  1995-07-05  |  2KB  |  76 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. MODULE 'exec/io'
  7.  
  8. CONST SER_DEFAULT_CTLCHAR=$11130000,
  9.       SDCMD_QUERY=9,
  10.       SDCMD_BREAK=10,
  11.       SDCMD_SETPARAMS=11,
  12.       SER_DEVFINISH=11,
  13.       SERB_XDISABLED=7,
  14.       SERF_XDISABLED=$80,
  15.       SERB_EOFMODE=6,
  16.       SERF_EOFMODE=$40,
  17.       SERB_SHARED=5,
  18.       SERF_SHARED=$20,
  19.       SERB_RAD_BOOGIE=4,
  20.       SERF_RAD_BOOGIE=16,
  21.       SERB_QUEUEDBRK=3,
  22.       SERF_QUEUEDBRK=8,
  23.       SERB_7WIRE=2,
  24.       SERF_7WIRE=4,
  25.       SERB_PARTY_ODD=1,
  26.       SERF_PARTY_ODD=2,
  27.       SERB_PARTY_ON=0,
  28.       SERF_PARTY_ON=1,
  29.       IOSTB_XOFFREAD=4,
  30.       IOSTF_XOFFREAD=16,
  31.       IOSTB_XOFFWRITE=3,
  32.       IOSTF_XOFFWRITE=8,
  33.       IOSTB_READBREAK=2,
  34.       IOSTF_READBREAK=4,
  35.       IOSTB_WROTEBREAK=1,
  36.       IOSTF_WROTEBREAK=2,
  37.       IOSTB_OVERRUN=0,
  38.       IOSTF_OVERRUN=1,
  39.       SEXTB_MSPON=1,
  40.       SEXTF_MSPON=2,
  41.       SEXTB_MARK=0,
  42.       SEXTF_MARK=1
  43.  
  44. OBJECT termarray
  45.   ta0:LONG
  46.   ta1:LONG
  47. ENDOBJECT     /* SIZEOF=8 */
  48.  
  49. OBJECT ioextser
  50.   iostd:iostd
  51.   ctlchar:LONG
  52.   rbuflen:LONG
  53.   extflags:LONG
  54.   baud:LONG
  55.   brktime:LONG
  56.   termarray:termarray
  57.   readlen:CHAR
  58.   writelen:CHAR
  59.   stopbits:CHAR
  60.   serflags:CHAR
  61.   status:INT  -> This is unsigned
  62. ENDOBJECT     /* SIZEOF=82 */
  63.  
  64. CONST SERERR_DEVBUSY=1,
  65.       SERERR_BAUDMISMATCH=2,
  66.       SERERR_BUFERR=4,
  67.       SERERR_INVPARAM=5,
  68.       SERERR_LINEERR=6,
  69.       SERERR_PARITYERR=9,
  70.       SERERR_TIMERERR=11,
  71.       SERERR_BUFOVERFLOW=12,
  72.       SERERR_NODSR=13,
  73.       SERERR_DETECTEDBREAK=15
  74.  
  75. #define SERIALNAME 'serial.device'
  76.