(Page 67 of 80 in this chapter)
adiStopMFDetector
Description
- Stops the MF detector.
Prototype
- DWORD adiStopMFDetector( CTAHD ctahd )
- ctahd Context handle returned by adiOpenPort.
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 )
{
ADI_EVENT event;
if( adiStopMFDetector( ctahd ) != SUCCESS )
return MYFAILURE;
while( 1 )
{
myGetEvent( &event ); /* see adiFetchAndProcess example */
switch( event.id )
{
case ADIEVN_MF_DETECT_DONE:
if( event.value == CTA_REASON_RELEASED )
return MYDISCONNECT; /* call has been terminated */
else if( IS_ADI_ERROR( event.value ) )
return MYFAILURE; /* API error */
else
return SUCCESS; /* stopped normally */
break;
}
}
}
(Page 67 of 80 in this chapter)
Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights
reserved.