home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1995 October / PCO10.ISO / software / ever / tips / cfos / run / append.doc next >
Encoding:
Text File  |  1994-12-14  |  5.5 KB  |  149 lines

  1.  
  2.         cFos ISDN FOSSIL appendage, Revision 1.2
  3.  
  4.         The functions are to be called with  AH=0x90  and  the  function
  5.         number in AL. See the FOSSIL doc for more information on  FOSSIL
  6.         programming and user applications.
  7.  
  8.         Please note that the appendage functions are only active if  you
  9.         use a 'cFos/Pro' or 'cFos/Plus' version.
  10.  
  11.  
  12. ========================================================================
  13.  
  14.  
  15.         ISDN appendage, appendage code=0x90:
  16.  
  17. ------- 00 - check for ISDN appendage ----------------------------------
  18.  
  19.         INPUT:
  20.                 AX = 0x9000
  21.  
  22.         OUTPUT:
  23.                 AX = 0x1969
  24.                 BX = maximum function number supported
  25.                 CX = 'cF'
  26.                 DX = 'os'
  27.  
  28.         NOTE:
  29.                 if AX != 0x1969, this FOSSIL doesn't feature any
  30.                 ISDN appendage.
  31.  
  32.  
  33. ------- 01 - reset ISDN driver/hardware --------------------------------
  34.  
  35.         This function terminates all connections on all ports and resets
  36.         the ISDN driver/hardware. If 'cFos' was loaded  with  -jr,  this
  37.         function does nothing.
  38.  
  39.         INPUT:
  40.                 AX = 0x9001
  41.  
  42.         OUTPUT:
  43.                 AX = 0x0000 on success
  44.  
  45.  
  46. ------- 02 - get ISDN connection info ----------------------------------
  47.  
  48.         INPUT:
  49.                 AX = 0x9002
  50.                 DX = port number
  51.                 CX = number of bytes to get from appendage
  52.                 ES:BX = ptr to ISDN info block in application space
  53.  
  54.         OUTPUT:
  55.                 AX = 0000, success
  56.                 CX = number of bytes transfered into application buffer
  57.  
  58.                 ISDN info block:
  59.                         WORD    offset   into   additional    infomation
  60.                                 elements in  bytes,  starting  from  the
  61.                                 beginning of the block
  62.                         FAR PTR incoming call: incoming caller-id
  63.                                 outgoing call: dialed number
  64.                                 far ptr to ASCIZ string, segment first
  65.                         BYTE    number of b-channels currently in use by
  66.                                 this port
  67.                         DWORD   connection characteristics
  68.                                 bit 0 = 1   b2-protocol supports control
  69.                                             flow
  70.                                 bit 1 = 1   b2-protocol  supports  error
  71.                                             correction
  72.                                 bit 2 = 0   incoming call
  73.                                         1   outgoing call
  74.                                 all other bits are reserved  for  future
  75.                                 use
  76.                         WORD    current CPS rate
  77.  
  78.                         the  ISDN  info  block  can  contain  additional
  79.                         infomation  elements  reflecting  national  ISDN
  80.                         parameters, e.g. LLC/MSN/Subaddress/EAZ/...
  81.  
  82.                         Currently defined:
  83.                         BYTE    type 1 = 1.TR.6
  84.                         BYTE    requested EAZ
  85.                         BYTE    Service Indicator
  86.                         BYTE    Additional Service Indicator
  87.  
  88.  
  89. ------- 03 - get charging info -----------------------------------------
  90.  
  91.         INPUT:
  92.                 AX = 0x9003
  93.                 DX = port
  94.                 BX = no of b-channel of this port
  95.                      (0=main channel, 1=first aux channel...)
  96.                      ffff = sum of all charges on all channels,
  97.                             independant of carrier status
  98.  
  99.         OUTPUT:
  100.                 AX = 0000, success
  101.                      0001, no valid b-channel
  102.                 BX = num. of charges used for current connection
  103.                 CX = num. of seconds remaining in current charging  unit
  104.                      (valid after  2nd  charging  unit,  otherwise  link
  105.                      duration in seconds)
  106.  
  107.                 Note: If no connection is active this  function  can  be
  108.                       called with BX = 0 (as well as BX = 0xffff).  Then
  109.                       it returns CX = 0  and  BX  the  total  number  of
  110.                       charging  unit  of  the  last  call  (main  +  aux
  111.                       channels)
  112.  
  113.  
  114. ------- 04 - add/remove b-channel --------------------------------------
  115.  
  116.         INPUT:
  117.                 AX = 0x9004
  118.                 DX = port
  119.                 BX = 1 -> add, 2 -> remove
  120.  
  121.         OUTPUT:
  122.                 AX = 0000, success
  123.                      0001, no active connection
  124.                      0002, connect/disconnect already in progress
  125.  
  126.                 After a  call  to  this  function,  'cFos'  initiates  a
  127.                 connect/disconnect sequence. During  this  sequence  all
  128.                 calls  to  this  function  result  in  error  0002.  The
  129.                 completion can be determined by monitoring the number  B
  130.                 channels in use.
  131.                 Note: Dynamic CCB will be switched to  static  CCB  when
  132.                 this function is called.
  133.  
  134.  
  135. ------- 05 - get ISDN time/date ----------------------------------------
  136.  
  137.         INPUT:
  138.                 AX = 0x9005
  139.                 BX = 0000
  140.  
  141.         OUTPUT:
  142.                 AX = 0000, success
  143.                 CX:BX = difference between ISDN time and local  time  in
  144.                         seconds. CX = most significant word.
  145.  
  146.  
  147. ======= End of Text ====================================================
  148. 
  149.