Table of Contents Index NMS Glossary Previous Page Next Page (Page 56 of 69 in this chapter) Version


adiStopMFDetector

Description

Stops the MF detector.

Prototype

DWORD adiStopMFDetector ( CTAHD ctahd )

ctahd CTA context handle returned by ctaCreateContext.

Return Values

Events

Details

This function disables detection of MFs. After this function is called, MF events are not reported. The MF detector may be restarted with adiStartMFDetector, but cannot be restarted until the DONE event is received.

See Also

adiStartMFDetector

Example


int myStopMFDetector( CTAHD ctahd )
{
 CTA_EVENT event;

    if( adiStopMFDetector( ctahd ) != SUCCESS )
        return MYFAILURE;

    while( 1 )
    {
        myGetEvent( &event );           /* see ctaWaitEvent example */

        switch( event.id )
        {
            case ADIEVN_MF_DETECT_DONE:
                if( event.value == CTA_REASON_RELEASED )
                    return MYDISCONNECT;    /* call has been terminated */
                else if( CTA_IS_ERROR( event.value ) )
                    return MYFAILURE;       /* API error */
                else
                    return SUCCESS;         /* stopped normally */
                break;
        }
    }
}



Table of Contents Index NMS Glossary Previous Page Next Page (Page 56 of 69 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.