Previous PageTable Of ContentsHomeIndexNext Page


6.6.  TN_FREQ: Tone Frequency

The TN_FREQ structure is declared as follows:

The TN_FREQ structure specifies frequency information for a tone and is a member of the TN_DESC structure.

The TN_DESC structure is used in two different parameters of the lm_LearnTone( ) function, and serves the following purposes:

Use the lm_clrdesc( ) function to clear the fields of a TN_DESC structure, including the fields in the TN_FREQ and TN_DUR structures.


Table 5.  TN_FREQ Structure

Field

Description

tn_freq1

Length: 2 (unsigned short int).
Units: Hz.
Range: 300 Hz -- 3000 Hz.

Tone 1 Frequency: Specifies the frequency of the first tone in Hz. This information serves different purposes depending upon where the TN_DESC structure is specified:

 

For tn_tonep Existing Tone Input: Set this field to a non-zero value to adjust an existing tone description with the lm_LearnTone( ) function; you must specify in tn_tonep the complete tone description to be adjusted (also, make sure to set the dflagp location to specify a flag value for a single or dual tone).

 

For tn_tonep New Tone Input: Set this field to zero to learn a new tone with the lm_LearnTone( ) function; you must set the dflagp location to specify a flag value for a single or dual tone.

 

For tn_tonep Output: When lm_LearnTone( ) is complete, this field returns frequency information for the final tone description.

 

For tn_rangep Input: Set this field to a non-zero value to restrict the learning range; you must set lm_cadflag field in LM_PARM structure to indicate cadence or continuous if you do this.

tn_fq1dev

Length: 2 (unsigned short int).
Units: Hz.

Tone 1 Frequency Deviation: Specifies the frequency deviation of the first tone in Hz. This deviation is subtracted from and added to tn_freq1 to define the tone detection range.

tn_freq2

Length: 2 (unsigned short int).
Units: Hz.
Range: 300 Hz -- 3000 Hz.

Tone 2 Frequency: Specifies the frequency of the second tone in Hz.

 

0: Indicates there is no second tone (signal is a single tone).

tn_fq2dev

Length: 2 (unsigned short int).
Units: Hz.

Tone 2 Frequency Deviation: Specifies the frequency deviation of the second tone in Hz. This deviation is subtracted from and added to tn_freq2 to define the tone detection range.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Telecom Support Resources

Copyright 2003, Intel Corporation
All rights reserved
This page generated January, 2003