⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modem_globals.h

📁 话带数据中传真解调程序
💻 H
📖 第 1 页 / 共 2 页
字号:
 * Here is what values mean
 
 Par #                      Parameter Description                                      Range              Reference
   1      Pulse dial make time                                           0-255                            ATD
   2      Pulse dial break time                                          0-255                            ATD
   3      Pulse dial digit pattern                                       1 = normal, 2 = Sweden,          ATD
                                                                         3 = Norway
   4      DTMF high tone level in dB with implied minus sign             0-255                            ATD
   5      Min. DTMF dial speed in ms                                     0-255                            S11
   6      Max. DTMF dial speed in ms                                     0-255                            S11
   7      Call progress detection threshold in dB with implied minus 0-255
          sign
   8      Dial tone delay, i.e., waiting time before dial tone           0-255
          detection begins in multiples of 10 ms
   9      Dial tone hole time in ms                                      0-255
   a      Delay before resetting ring count to 0, in multiples of 100    0-255
          ms
   b      Min. ring count for auto-answer                                0-255                            S0
   c      Max. ring count for auto-answer                                0-255                            S0
   d      Min. ring signal period =                                      0-255
          1000/(0.833 x Max. ring frequency)
   e      Max. ring signal period =                                      0-255
          1000/(0.833 x Min. ring frequency)
    f     Min. ring cadence on time, in multiples of 10 ms               0-255
   10     Min ring cadence off time, in multiple of 20 ms                0-255
   11     Min. busy cadence on time, in multiples of 10 ms               0-255; If 0, use the standard
                                                                         busy detection algorithm;
                                                                         otherwise, use the country
                                                                         specific values for cadence
   12     Max. busy cadence on time, in multiples of 10 ms               0-255; If 0, use the standard
                                                                         busy detection algorithm;
                                                                         otherwise, use the country
                                                                         specific values for cadence
   13     Number of busy cycles required to detect busy condition        0-255
   14     Min. busy cadence off time, in multiples of 10 ms              0-255; If 0, use the standard
                                                                         busy detection algorithm;
                                                                         otherwise, use the country
                                                                         specific values for cadence
   15     Max. busy cadence off time, in multiples of 10 ms              0-255; If 0, use the standard
                                                                         busy detection algorithm;
                                                                         otherwise, use the country
                                                                         specific values for cadence
   16     Continuous # unavailable detection flag                        0 = disabled, 1 = enabled
   17     Answer tone validation time in multiples of  10 ms             0-255
   18     Blacklisting/delayed flag                                      0 = disabled, 1 = enabled        ATD

 Par #                  Parameter Description                                       Range                             Reference
      19    Number of failed attempts allowed before           0-255                                                  ATD
            blacklisting
      1a    Troubled call delay in minutes                     0-255                                                  ATD
      1b    Ineffective call delay in minutes                  0-255                                                  ATD
      1c    Erroneous call delay in minutes                    0-255                                                  ATD
      1d    Blacklisting duration in multiple of 10 minutes 0-255;                                                    ATD
                                                               0 = only delayed and no blacklisting
                                                               255 = no limit (i.e., till power turned off)
      1e    Over-current sense validation time in              0-255, 0 = current sense disabled.                     ATA, ATD
            multiples of 10 ms
      1f    Calling tone flag                                  0 = disabled                                           ATD , S35
                                                               1 = enabled, and disable with ^ dial
                                                                     modifier permitted
                                                               2 = enabled,  and disable with ^ dial
                                                                     modifier not permitted
      20    Blind dial flag                                    0 = not permitted                                      ATD , ATX
                                                               1 = permitted
                                                               2 = permitted with speaker on
      21    Busy detect disable (with ATX) flag                0 = not permitted                                      ATD , ATX
                                                               1 = permitted
      22    Guard tone type                                    0 = not present & adjustable                           S37
                                                               1 = 550 Hz, 2 = 1800 Hz
      23    Bell modes permitted flag                          0 = not permitted                                      ATB
                                                               1 = permitted
      24    Off-hook  (ATH1) restrictions                      0 = no restrictions                                    ATH1
                                                               1 = restricted by S7 duration
                                                               2 = not allowed
      25    Shunt relay on time during off-hook in             0-255                                                  ATD
            multiples of 10 ms.                                0 = shunt relay disabled
      26    Hook flash time in multiples of 10 ms              0-255                                                  ATD
                                                               0 = hook flash not allowed
      27    Min. blind dial pause in seconds                   0-65                                                   S6
      28    Max. blind dial pause in seconds                   0-65                                                   S6
      29    Min. no answer time-out in seconds                 0-65                                                   S7
      2a    Max. no answer time-out in seconds                 0-65                                                   S7
      2b    Min. dial pause time in seconds                    0-65                                                   S8
      2c    Max. dial pause time in seconds                    0-65                                                   S8
      2d    Min. no carrier disconnect time in multiples of 1-65                                                      S10
            100 ms
      2e    Max. no carrier disconnect time in multiples of 1-255                                                     S10
            100 ms
      2f    Transmit level in dB with implied minus sign       0-255                                                        ATD
      30    Dial modifier validation                           0 = if an invalid dial modifier is found, treat the           -
                                                               entire dial string as null (no digits dialed)
                                                               1 = ignore invalid dial modifiers

 Par #                    Parameter Description                                             Range                     Reference
  31      TAD receive gain                                          0-255                                                -
  32      Half/full wave ring detection                             0 = halfwave, 1 = fullwave                           -
  33      Number of failed attempts allowed in first stage          0-255                                               ATD
          delayed dialing
  34      Number of all failed attempts ( to any number)            0-255                                               ATD
          allowed before any further dial attempts are blocked      255 = not applicable
  35      Erroneous call increment count                            0-255                                               ATD
  36      Dial tone validation time in multiples of 100 ms          0-255                                               ATD
  37      Busy tone detection during dial tone detection flag       0 = not required, 1 = required                      ATD
  38      DTMF high and low tone level difference in dB             0-255                                                -
  39      Local phone detection in speakerphone                     0 = enabled; 1 = disabled                            -
  3a      Pulse dialing flag                                        0 = enabled; 1 = disabled                           ATD
  3b      Dial tone/call progress filter index                      0 = 340-560 Hz         1 = 310-485 Hz                -
                                                                    2 = 363-502 Hz         3 = 276-504 Hz
                                                                    4 = 415-460 Hz         5 = 310-640 Hz
   3c     Dial tone detection threshold in dB                       0-255                                                -
  3d      ABCD dialing permitted flag                               0 = permitted, 1 = not permitted                    ATD
  3e      Comma pause duration limit in seconds.  (If there are 0-255                                                   ATD
          multiple commas between digits, the total pause
          duration is limited to the duration set by this
          parameter).
   3f     TAD transmit level in dB                                  0-255                                                -
  40      Data/FAX carrier receive threshold in dB. There is a 6 0-255                                                   -
          dB offset in DSP. This parameter value should set to:
          (required threshold [6 dB] DAA gain)
  41      No dialtone time-out duration while detecting dialtone 0-255                                                  ATD
          with W dial modifier, in seconds
  42      FAX/Data answer tone detection threshold in dB            0-255                                                -
  43      Dialtone level (absolute value)                           0-255                                                -
  44      FAX receive threshold in dB                               0-255                                                -
  45      Pulse and tone dial in same dial string permitted flag    0 = permitted, 1 = not permitted                    ATD
  46      Ringer impedance relay flag                               0 = off, 1 = on
  47      DC loop V/I characteristics relay flag                    0 = off, 1 = on
  48      DC loop limiting relay flag                               0 = off, 1 = on
  49      Real/complex impedance                                    0x0X = real, Tx & Rx gains set by mercury
                                                                    internal components. X = Don't care
                                                                    0x10 = real,  Tx gain set by mercury
                                                                    internal components & Rx gain set by
                                                                    external components.
                                                                    0x12 = complex, Tx gain set by mercury
                                                                    internal components & Rx gain set by
                                                                    external components. Mercury internal
                                                                    switch used to select complex impedance.
  4a      Mercury register CIOCA MSB value-receive gain             This parameter is relevant only when a Mercury       -
                                                                    line codec is used.
 Par #                   Parameter Description                                        Range                      Reference
      4b    Mercury register CIOCA LSB value-hybrid,           This parameter is relevant only when a Mercury       -
            impedance, etc.                                    line codec is used.
      4c    Mercury register CIOCB MSB value-transmit gain     This parameter is relevant only when a Mercury       -
                                                               line codec is used.
      4d    Mercury register CIOCB LSB value-BOM control       This parameter is relevant only when a Mercury       -
                                                               line codec is used.
      4e    TAD Mercury register CIOCB MSB value-transmit      This parameter is relevant only when a Mercury
            gain in TAD mode                                   line codec is used.
      4f    FDSP Mercury register CIOCB MSB value-transmit     This parameter is relevant only when a Mercury
            gain in speakerphone mode                          line codec is used.

 */

#define HBASE 0xEE6    /* it is numbered from 1 */

// FIXME: part of byte array starting at 59EFD + 4;

// FIXME: this is actually part of homol[] array
//EXTERN unsigned char byte_59F0B I(0x82);

// Used by modem connection routines.
EXTERN unsigned short x_line_rate, x_line_rate_tx;
EXTERN unsigned short dp_max_line_rate I(0), dp_wV32bisRcvRate I(0);
EXTERN unsigned short wSymbolRate I(0);

EXTERN unsigned int x_modem_ec, x_fax_state;
EXTERN int dp_dialing_status, x_modem_mode; 

EXTERN int dp_timer I(0), dp_ocp_timer I(0);
EXTERN struct lt_timer dp_long_timer;

EXTERN unsigned char x_modem_originate;
EXTERN unsigned char ETC_mode;

EXTERN unsigned short word_59E9E, word_59E9C;

EXTERN unsigned char x_test_mode_on, x_parity_mask, x_dma_xfer;

EXTERN unsigned short x_minute_timer, x_minute_count;

EXTERN unsigned int x_minute_timer_long;

EXTERN unsigned char x_parameter_mode;

EXTERN unsigned short word_59EAB, word_59EAF;

// Other stuff.

EXTERN unsigned char cpcpt_value[0xc00];

EXTERN unsigned char D3Flag, dp_calling_tone_disable;
EXTERN unsigned char dp_failures, dp_blacklist_calls;

EXTERN int x_modem_state, x_dial_residual;

EXTERN short dp_wDspRetrainState;

EXTERN unsigned char V34Mode;

// Set up in dp_board_enable with initial values.
EXTERN unsigned int BaseAddressIndex I(0);
EXTERN unsigned int BaseAddressData I(0);

EXTERN unsigned char BaseValue I(0);

// Bodged country list extracted from countries.h.

#define COUNTRY_AUSTRALIA	1
#define COUNTRY_BELGIUM		2
#define COUNTRY_DENMARK		3
#define COUNTRY_FINLAND		4
#define COUNTRY_FRANCE		5
#define COUNTRY_GERMANY		6
#define COUNTRY_NETHERLANDS	7
#define COUNTRY_ITALY		8
#define COUNTRY_NEW_ZEALAND	9
#define COUNTRY_NORWAY		10
#define COUNTRY_SPAIN		11
#define COUNTRY_SWEDEN		12
#define COUNTRY_SWITZERLAND	13
#define COUNTRY_UNITED_KINGDOM 14
#define COUNTRY_AUSTRIA		15
#define COUNTRY_JAPAN		16
#define COUNTRY_PRC		17
#define COUNTRY_KOREA		18
#define COUNTRY_MALAYSIA	19
#define COUNTRY_SINGAPORE	20
#define COUNTRY_TAIWAN		21
#define COUNTRY_THAILAND	22
#define COUNTRY_INDONESIA	23
#define COUNTRY_PORTUGAL	24
#define COUNTRY_NORTH_AMERICA	25
#define COUNTRY_IRELAND		26
#define COUNTRY_HONG_KONG	27
#define COUNTRY_CANADA		28
#define COUNTRY_MEXICO		29
#define COUNTRY_INDIA		30
#define COUNTRY_VIETNAM		31
#define COUNTRY_PHILIPPINES	32
#define COUNTRY_GREECE		33
#define COUNTRY_HUNGARY		34
#define COUNTRY_TURKEY		35
#define COUNTRY_SOUTH_AFRICA	36
#define COUNTRY_POLAND		37
#define COUNTRY_SLOVENIA	38
#define COUNTRY_SLOVAKIA	39
#define COUNTRY_CZECH_REPUBLIC	40
#define COUNTRY_LUXEMBOURG	41
#define COUNTRY_EUROPE		42
#define COUNTRY_BRAZIL		43
#define COUNTRY_BULGARIA	44
#define COUNTRY_CYPRUS		45
#define COUNTRY_ICELAND		46
#define COUNTRY_RUSSIA		47

#define vendor S[0x75]

// V80 stuff.
EXTERN unsigned char V80_Options[20];
EXTERN unsigned short v80_tx_timer, v80_rx_timer;
EXTERN unsigned char v80_retrain;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -