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


adiStopTimer

Description

Aborts the timer operation.

Prototype

DWORD adiStopTimer ( CTAHD ctahd )

ctahd CTA context handle returned by ctaCreateContext.

Return Values

Events

Details

This function aborts the timer operation started by adiStartTimer.

See Also

adiStartTimer

Example


int myStopTimer( CTAHD ctahd )
{
 CTA_EVENT event;

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

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

        switch( event.id )
        {
            case ADIEVN_TIMER_DONE:
                if( CTA_IS_ERROR( event.value ) )
                    return MYFAILURE;       /* API error */
                else
                    return SUCCESS;         /* stopped normally */
                break;

            /* might include cases to handle disconnect, DTMFs, etc. */
        }
    }
}



Table of Contents Index NMS Glossary Previous Page Next Page (Page 63 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.