Previous PageTable Of Contents../index.htmlIndexNext Page

dx_bldstcad( )

Description | Example | Cautions | Errors | See Also

Name:

int dx_bldstcad(tid,freq,fqdev,ontime,ontdev,offtime,
offtdev,repcnt)

Inputs:

unsigned int tid

  tone ID to assign.

 

unsigned int freq

  frequency in Hz

 

unsigned int fqdev

  frequency deviation in Hz

 

unsigned int ontime

  tone on time in 10ms

 

unsigned int ontdev

  on time deviation in 10ms

 

unsigned int offtime

  tone off time in 10ms

 

unsigned int offtdev

  off time deviation in 10ms

 

unsigned int repcnt

  repetitions if cadence

Returns:

0 if success

 

-1 if failure

Includes:

srllib.h
dxxxlib.h

Category:

Global Tone Detection

Top Of PageDescription

The dx_bldstcad( ) function defines a user-defined single frequency cadenced tone. Subsequent calls to dx_addtone( ) will use this tone, until another tone is defined.

A single frequency cadence tone has single frequency signals with specific on/off characteristics.

Issuing a dx_bldstcad( ) defines a new tone but dx_addtone( ) must be used to add the tone to the channel.

Use dx_addtone( ) to enable detection of the user-defined tone on a channel.

Parameter

Description

tid

specifies a unique identifier for the tone.

 
NOTE:
Do not use tone IDs 261, 262 and 263, they are reserved for library use.

If you are using R2MF tone detection, reserve the use of tone IDs 101 to 115 for the R2MF tones. See r2_creatfsig( ) for further information.

freq

specifies the frequency (in Hz) for the tone

frqdev

specifies the allowable deviation for the frequency (in Hz).

ontime

specifies the length of time for which the cadence is on. (10 ms units)

ontdev

specifies the allowable deviation for on time in 10 ms units.

offtime

specifies the length of time for which the cadence is off. (10 ms units)

offtdev

specifies the allowable deviation for off time in 10 ms units.

repcnt

specifies the number of repetitions for the cadence (i.e., the number of times that an on/off signal is repeated).

Top Of PageExample

Top Of PageCautions

    1. Only 1 tone per application may be defined at any time. dx_bldstcad( ) will replace the previous user-defined tone definition.
    2. Do not use tone IDs 261, 262 and 263, they are reserved for library use.
    3. If you are using R2MF tone detection, reserve the use of tone IDs 101 to 115 for the R2MF tones. See the r2_creatfsig( ) function for further information.
    4. When using this function in a multi-threaded application, use critical sections or a semaphore around the function call to ensure a thread-safe application. Failure to do so will result in "Bad Tone Template ID" errors.

Top Of PageErrors

None.

Top Of PageSee Also

Global Tone Detection:

Building Tones:

Enabling Tone Detection:

R2MF Tones:


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002