OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [Documentation/] [isdn/] [INTERFACE.fax] - Diff between revs 1275 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1275 Rev 1765
$Id: INTERFACE.fax,v 1.1.1.1 2004-04-15 02:32:25 phoenix Exp $
$Id: INTERFACE.fax,v 1.1.1.1 2004-04-15 02:32:25 phoenix Exp $
Description of the fax-subinterface between linklevel and hardwarelevel of
Description of the fax-subinterface between linklevel and hardwarelevel of
  isdn4linux.
  isdn4linux.
  The communication between linklevel (LL) and hardwarelevel (HL) for fax
  The communication between linklevel (LL) and hardwarelevel (HL) for fax
  is based on the struct T30_s (defined in isdnif.h).
  is based on the struct T30_s (defined in isdnif.h).
  This struct is allocated in the LL.
  This struct is allocated in the LL.
  In order to use fax, the LL provides the pointer to this struct with the
  In order to use fax, the LL provides the pointer to this struct with the
  command ISDN_CMD_SETL3 (parm.fax). This pointer expires in case of hangup
  command ISDN_CMD_SETL3 (parm.fax). This pointer expires in case of hangup
  and when a new channel to a new connection is assigned.
  and when a new channel to a new connection is assigned.
Data handling:
Data handling:
  In send-mode the HL-driver has to handle the  codes and the bit-order
  In send-mode the HL-driver has to handle the  codes and the bit-order
  conversion by itself.
  conversion by itself.
  In receive-mode the LL-driver takes care of the bit-order conversion
  In receive-mode the LL-driver takes care of the bit-order conversion
  (specified by +FBOR)
  (specified by +FBOR)
Structure T30_s description:
Structure T30_s description:
  This structure stores the values (set by AT-commands), the remote-
  This structure stores the values (set by AT-commands), the remote-
  capability-values and the command-codes between LL and HL.
  capability-values and the command-codes between LL and HL.
  If the HL-driver receives ISDN_CMD_FAXCMD, all needed information
  If the HL-driver receives ISDN_CMD_FAXCMD, all needed information
  is in this struct set by the LL.
  is in this struct set by the LL.
  To signal information to the LL, the HL-driver has to set the
  To signal information to the LL, the HL-driver has to set the
  the parameters and use ISDN_STAT_FAXIND.
  the parameters and use ISDN_STAT_FAXIND.
  (Please refer to INTERFACE)
  (Please refer to INTERFACE)
Structure T30_s:
Structure T30_s:
  All members are 8-bit unsigned (__u8)
  All members are 8-bit unsigned (__u8)
  -  resolution
  -  resolution
  -  rate
  -  rate
  -  width
  -  width
  -  length
  -  length
  -  compression
  -  compression
  -  ecm
  -  ecm
  -  binary
  -  binary
  -  scantime
  -  scantime
  -  id[]
  -  id[]
  Local faxmachine's parameters, set by +FDIS, +FDCS, +FLID, ...
  Local faxmachine's parameters, set by +FDIS, +FDCS, +FLID, ...
  -  r_resolution
  -  r_resolution
  -  r_rate
  -  r_rate
  -  r_width
  -  r_width
  -  r_length
  -  r_length
  -  r_compression
  -  r_compression
  -  r_ecm
  -  r_ecm
  -  r_binary
  -  r_binary
  -  r_scantime
  -  r_scantime
  -  r_id[]
  -  r_id[]
  Remote faxmachine's parameters. To be set by HL-driver.
  Remote faxmachine's parameters. To be set by HL-driver.
  -  phase
  -  phase
  Defines the actual state of fax connection. Set by HL or LL
  Defines the actual state of fax connection. Set by HL or LL
  depending on progress and type of connection.
  depending on progress and type of connection.
  If the phase changes because of an AT command, the LL driver
  If the phase changes because of an AT command, the LL driver
  changes this value. Otherwise the HL-driver takes care of it, but
  changes this value. Otherwise the HL-driver takes care of it, but
  only necessary on call establishment (from IDLE to PHASE_A).
  only necessary on call establishment (from IDLE to PHASE_A).
  (one of the constants ISDN_FAX_PHASE_[IDLE,A,B,C,D,E])
  (one of the constants ISDN_FAX_PHASE_[IDLE,A,B,C,D,E])
  -  direction
  -  direction
  Defines outgoing/send or incoming/receive connection.
  Defines outgoing/send or incoming/receive connection.
  (ISDN_TTY_FAX_CONN_[IN,OUT])
  (ISDN_TTY_FAX_CONN_[IN,OUT])
  -  code
  -  code
  Commands from LL to HL; possible constants :
  Commands from LL to HL; possible constants :
      ISDN_TTY_FAX_DR        signals +FDR command to HL
      ISDN_TTY_FAX_DR        signals +FDR command to HL
      ISDN_TTY_FAX_DT        signals +FDT command to HL
      ISDN_TTY_FAX_DT        signals +FDT command to HL
      ISDN_TTY_FAX_ET        signals +FET command to HL
      ISDN_TTY_FAX_ET        signals +FET command to HL
  Other than that the "code" is set with the hangup-code value at
  Other than that the "code" is set with the hangup-code value at
  the end of connection for the +FHNG message.
  the end of connection for the +FHNG message.
  -  r_code
  -  r_code
  Commands from HL to LL; possible constants :
  Commands from HL to LL; possible constants :
      ISDN_TTY_FAX_CFR       output of +FCFR message.
      ISDN_TTY_FAX_CFR       output of +FCFR message.
      ISDN_TTY_FAX_RID       output of remote ID set in r_id[]
      ISDN_TTY_FAX_RID       output of remote ID set in r_id[]
                             (+FCSI/+FTSI on send/receive)
                             (+FCSI/+FTSI on send/receive)
      ISDN_TTY_FAX_DCS       output of +FDCS and CONNECT message,
      ISDN_TTY_FAX_DCS       output of +FDCS and CONNECT message,
                             switching to phase C.
                             switching to phase C.
      ISDN_TTY_FAX_ET        signals end of data,
      ISDN_TTY_FAX_ET        signals end of data,
                             switching to phase D.
                             switching to phase D.
      ISDN_TTY_FAX_FCON      signals the established, outgoing connection,
      ISDN_TTY_FAX_FCON      signals the established, outgoing connection,
                             switching to phase B.
                             switching to phase B.
      ISDN_TTY_FAX_FCON_I    signals the established, incoming connection,
      ISDN_TTY_FAX_FCON_I    signals the established, incoming connection,
                             switching to phase B.
                             switching to phase B.
      ISDN_TTY_FAX_DIS       output of +FDIS message and values.
      ISDN_TTY_FAX_DIS       output of +FDIS message and values.
      ISDN_TTY_FAX_SENT      signals that all data has been sent
      ISDN_TTY_FAX_SENT      signals that all data has been sent
                             and  is acknowledged,
                             and  is acknowledged,
                             OK message will be sent.
                             OK message will be sent.
      ISDN_TTY_FAX_PTS       signals a msg-confirmation (page sent successful),
      ISDN_TTY_FAX_PTS       signals a msg-confirmation (page sent successful),
                             depending on fet value:
                             depending on fet value:
                             0: output OK message (more pages follow)
                             0: output OK message (more pages follow)
                             1: switching to phase B (next document)
                             1: switching to phase B (next document)
      ISDN_TTY_FAX_TRAIN_OK  output of +FDCS and OK message (for receive mode).
      ISDN_TTY_FAX_TRAIN_OK  output of +FDCS and OK message (for receive mode).
      ISDN_TTY_FAX_EOP       signals end of data in receive mode,
      ISDN_TTY_FAX_EOP       signals end of data in receive mode,
                             switching to phase D.
                             switching to phase D.
      ISDN_TTY_FAX_HNG       output of the +FHNG and value set by code and
      ISDN_TTY_FAX_HNG       output of the +FHNG and value set by code and
                             OK message, switching to phase E.
                             OK message, switching to phase E.
  -  badlin
  -  badlin
  Value of +FBADLIN
  Value of +FBADLIN
  -  badmul
  -  badmul
  Value of +FBADMUL
  Value of +FBADMUL
  -  bor
  -  bor
  Value of +FBOR
  Value of +FBOR
  -  fet
  -  fet
  Value of +FET command in send-mode.
  Value of +FET command in send-mode.
  Set by HL in receive-mode for +FET message.
  Set by HL in receive-mode for +FET message.
  -  pollid[]
  -  pollid[]
  ID-string, set by +FCIG
  ID-string, set by +FCIG
  -  cq
  -  cq
  Value of +FCQ
  Value of +FCQ
  -  cr
  -  cr
  Value of +FCR
  Value of +FCR
  -  ctcrty
  -  ctcrty
  Value of +FCTCRTY
  Value of +FCTCRTY
  -  minsp
  -  minsp
  Value of +FMINSP
  Value of +FMINSP
  -  phcto
  -  phcto
  Value of +FPHCTO
  Value of +FPHCTO
  -  rel
  -  rel
  Value of +FREL
  Value of +FREL
  -  nbc
  -  nbc
  Value of +FNBC (0,1)
  Value of +FNBC (0,1)
  (+FNBC is not a known class 2 fax command, I added this to change the
  (+FNBC is not a known class 2 fax command, I added this to change the
   automatic "best capabilities" connection in the eicon HL-driver)
   automatic "best capabilities" connection in the eicon HL-driver)
Armin
Armin
mac@melware.de
mac@melware.de
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.