Previous PageTable Of Contents../index.htmlIndexNext Page

dx_bldst( )

Description | Cautions | Example | Errors | See Also

Name:

int dx_bldst(tid,freq,fqdev,mode)

Inputs:

unsigned int tid

  tone ID to assign.

 

unsigned int freq

  frequency in Hz

 

unsigned int fqdev

  frequency deviation in Hz

 

unsigned int mode

  leading or trailing edge

Returns:

0 if success

 

-1 if failure

Includes:

srllib.h
dxxxlib.h

Category:

Global Tone Detection

Mode:

 

Top Of PageDescription

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

Issuing a dx_bldst( ) 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).

mode

specifies whether detection is on the leading or trailing edge of the tone. Set to one of the following:

 
  • TN_LEADING
 
  • TN_TRAILING

Top Of PageCautions

    1. Only 1 tone per application may be defined at any time. dx_bldst( ) 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 r2_creatfsig( ) 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 PageExample

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