6.5 Energy Detector

(Page 6 of 11 in this chapter)
AG boards are capable of running an energy detector which examines the inband signal, distinguishing between silence and energy. The energy detector generates the following events:

ADIEVN_SILENCE_DETECTED
ADIEVN_ENERGY_DETECTED
ADIEVN_ENERGY_DETECT_DONE

The energy detector functions are:

Function

Description

adiStartEnergyDetector

Starts the energy detector.

adiStopEnergyDetector

Stops the energy detector.

The adiStartEnergyDetector function takes two qualification time parameters:

Other parameters for the energy detector are defined in a structure with default values. You can modify the energy detector's default behavior by specifying the following parameters when invoking adiStartEnergyDetector:

Figure 27 illustrates the energy detection parameters.



: Energy Detection Parameters

The above parameter information is communicated via the ADIENERGYDETECT parameter structure whose exact representation is defined in Appendix D of the AG Access Function Reference Manual.

The adiStopEnergyDetector function immediately terminates energy/silence detection. AG Access generates an ADIEVN_ENERGYDETECT_DONE event with the value set to ADI_REASON_STOPPED, meaning stopped short by request.

AG Access may also generate the ADIEVN_ENERGYDETECT_DONE event with an error code, ADIERR_xxx, or with the value set to ADI_REASON_FINISHED. When set to auto-stop (one-shot), the value is set to ADIEVN_REASON_FINISHED and the size field contains either ADIEVN_ENERGY_DETECTED or ADIEVN_SILENCE_DETECTED.


(Page 6 of 11 in this chapter)

Copyright 1996 Natural MicroSystems, Inc. All Rights Reserved.