home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 123 / af123a.adf / af123a1.lzx / Porthandler / port-handler.refs < prev    next >
Text File  |  2019-03-05  |  4KB  |  107 lines

  1.  
  2.        port-handler reference
  3.  
  4.        This text is taken from the autodocs, (C) 1985-1999 by Amiga Int, inc.
  5.        Some changes were made by Stephan Rupprecht.
  6.  
  7.        FUNCTION
  8.     Port-handler allows AmigaDOS to interface to a standard parallel
  9.     device, a standard printer device, and a standard serial device.
  10.  
  11.     Accessing "PAR:" connects AmigaDOS to the system's parallel port.
  12.  
  13.     Accessing "PRT:" connects AmigaDOS to the system's printer. Data
  14.     written to PRT: is processed by the Amiga's printer device, handling
  15.     conversions of ANSI sequences, and sent to the printer. Accessing
  16.     "PRT:RAW" instead causes carriage return translation to be turned
  17.     off in the printer device while printing.
  18.  
  19.     Accessing "SER:" connects AmigaDOS to the system's default serial port.
  20.     Following SER:, the baud rate and some control information can be
  21.     supplied. This is done in the form "SER:baud/control" where baud is
  22.     a number indicating the baud rate, and where control is a 3 letter
  23.     sequence denoting the number of read/write bits, the parity, and the
  24.     number of stop bits. For example, "SER:9600/8N1" connects to the
  25.     serial port, sets the baud rate to 9600, with 8 bit data, no parity,
  26.     and 1 stop bit. The possible control settings are:
  27.  
  28.         1st character: 7 or 8
  29.         2nd character: N (No parity), O (Odd parity), E (Even parity)
  30.                    M (Mark parity), S (Space parity)
  31.         3rd character: 1 or 2
  32.  
  33.     Specifying no baud rate or control values when accessing SER: gives you
  34.     the values set in Serial preferences.
  35.  
  36.        MOUNTLIST ENTRIES
  37.     dos.library automatically mounts PAR:, PRT:, and SER: upon
  38.     system boot up. The mount entries used by dos.library are equivalent
  39.     to:
  40.  
  41.        SER:    Handler   = L:Port-Handler
  42.                Priority  = 5
  43.                StackSize = 800
  44.            GlobVec   = 1
  45.                Startup   = 0
  46.        #
  47.  
  48.        PAR:    Handler   = L:Port-Handler
  49.                Priority  = 5
  50.                StackSize = 800
  51.            GlobVec   = 1
  52.                Startup   = 1
  53.        #
  54.  
  55.        PRT:    Handler   = L:Port-Handler
  56.                Priority  = 5
  57.                StackSize = 1000
  58.            GlobVec   = 1
  59.                Startup   = 2
  60.        #
  61.  
  62.     Starting with V40, you can also provide disk-based mount entries
  63.     which let you use port-handler as a serial handler on various devices
  64.     and units. The form of these mount entries is:
  65.  
  66.        SER0:   EHandler  = L:Port-Handler
  67.                Priority  = 5
  68.                StackSize = 800
  69.            GlobVec   = 1
  70.                Device    = serial.device
  71.                Unit      = 0
  72.                Flags     = 0
  73.            Control   = "8N1"
  74.                Baud      = 9600
  75.     #
  76.  
  77.     The "Device", "Unit" and "Flags" keywords define the parameters
  78.     that the handler uses to open the specified device. "Baud" and "Control"
  79.     define the default values for baud rate and control information for
  80.     whenever that serial handler is accessed by name only, without
  81.     explicit baud rate and control information specified.
  82.  
  83.        NOTE
  84.     Prior to V40, the baud rate and control information for SER: were
  85.     only recognized if an A2232 multi-serial card was installed in the
  86.     system. Starting with V40, these values are always recognized.
  87.  
  88.        PORT-HANDLER V41 (SR)
  89.  
  90.     Starting with V41, you can also provide disk-based mount entries
  91.     which let you use port-handler as a parallel handler on various devices
  92.     and units. The form of these mount entries is:
  93.  
  94.        HPAR:   EHandler  = L:Port-Handler
  95.                Priority  = 5
  96.                StackSize = 1024
  97.            GlobVec   = 1
  98.                Device    = hyperPAR.device
  99.                Unit      = 0
  100.                Flags     = 0
  101.            Baud      = 0
  102.     # 
  103.  
  104.     The "Device", "Unit" and "Flags" keywords define the parameters
  105.     that the handler uses to open the specified device. 'Baud = 0'
  106.     tells port-handler to act as parallel handler.
  107.