Adding Tones To Tone Detector - Intel IXP400 User Manual

Intel car stereo system user manual
Table of Contents

Advertisement

typedef struct {
UINT16
repCount;
UINT16
segType;
UINT32
durationOn; /* active duration in 1-ms unit. */
UINT32
durationOff;/* silence duration in 1-ms unit. */
INT16
freqA;
INT16
freqB;
INT16
ampA;
INT16
ampB;
UINT16
mode;
INT16
nextSeg;
} XTGToneSeg_t;
Warning:
New tone definition must be added during the initialization after
defined country-specific call progress tone will be overwritten if a new tone is added with the same
tone ID.
8.3

Adding Tones to Tone Detector

Prototype
Input
Output
Return
Description
This function adds a criterion for the Tone Detector to detect a new tone. The criterion specify the
qualification ranges to a set of parameters defined as:
API Reference Manual
®
Intel
IXP400 Digital Signal Processing (DSP) Software Version 2.5
/* repetition number of the segment. 0 means to repeat forever */
/* signal type (single or dual frequency wave or AM wave ) */
/* 1st frequency if single or dual frequency wave,
or the modulated carry frequency if AM wave, in 1Hz
/* 2nd frequency if dual frequency wave
or the modulating frequency if AM wave,
ignored if single frequency wave */
/* amplitude of frequency A above, (0~ – 45 in 1dBm unit) */
/* amplitude of frequency B if dual frequency wave,
or modulation rate if AM wave (0~100 in 1% unit),
ignored if single frequency wave */
/* mode, overwrite or mix over the Decoder output */
/* the index of next segment relative to the current segement.
e.g., 1 means to go the following segment,
0 means repeat the current segment,
–2 means go back to previous 2 segments.
XTG_LASTSEG means end-of-tone */
S
tatus_t xBuildToneTD(UINT8 toneId, XTDToneInfo_t
*pToneInfo, UINT32 *pErrCode);
toneId
– Tone ID, must be in the range of 16 ~ 255
pToneInfo
— Tone detection criterion information
pErrCode
– Error code if errors
XSUCC
if successful
• Otherwise
XERROR
Configuration and Initialization
. The pre-
xDspSysInit()
unit*/
41

Advertisement

Table of Contents
loading

Table of Contents