Voice API Programming Guide — June 2005 155
Global Tone Detection and Generation, and Cadenced Tone Generation
13.1.11 Global Tone Detection Application
A sample application for global tone detection (GTD) is detecting leading edge debounce time.
Rather than detecting a signal immediately, an application may want to wait for a period of time
(debounce time) before the DE_TONEON event is generated indicating the detection of the signal.
The dx_bldstcad( ) and dx_blddtcad( ) functions can detect leading edge debounce on-time. A
tone must be present at a given frequency and for a period of time (debounce time) before a
DE_TONEON event is generated. The debounce time is specified using the tone-on time, tone-on
time deviation, tone-off time, tone-off time deviation, and repetition count parameters in the
dx_bldstcad( ) or dx_blddtcad( ) functions.
To detect leading edge debounce time, specify the following values for the dx_bldstcad() or
dx_blddtcad( ) function parameters listed below:
•For ontime, specify 1/2 of the desired debounce time
•For ontdev, specify -1/2 of the desired debounce time
•For offtime, specify 0
•For offtdev, specify 0
•For repcnt, specify 0
Note: The dx_blddt() and dx_bldst( ) functions cannot be used to detect leading edge debounce time
because they do not have timing field parameters.
13.2 Global Tone Generation (GTG)The following topics provide information on using global tone generation:
•Using GTG
•GTG Functions
•Building and Implementing a Tone Generation Template
13.2.1 Using GTG
Global tone generation enables the creation of user-defined tones. The tone generation template,
TN_GEN, is used to define the tones with the following information:
•Single or dual tone
•Frequency fields
•Amplitude for each frequency
D/240JCT-T1 300 15
D/300JCT-E1 450 15
Table18. Maximum Tone Templates for Dual Tones (Springware) (Continued)