X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-79
Text of C Example
}; /* if awaitio() */
}; /* if control() */
}
else if( strncmp( term_buffs, WAIT_OP, 4 ) == 0 )
{
/*
*--------------------------------------------------------------
* WAIT FOR A CALL FROM REMOTE SUBDEVICE
* -------------------------------------
* Wait for a call from remote subdevice. Reset the flag to show
* that no call was sent.
*--------------------------------------------------------------
*/
call_sent_flag = FALSE;
if( CONTROL( comm_file, 11 ) != CCE )
{
FILEINFO( comm_file, &error );
ReportCommError( error );
}
else
{
if( AWAITIO( &comm_file,,,, -1L ) != CCE )
{
FILEINFO( comm_file, &error );
ReportCommError( error );
}; /* if awaitio() */
}; /* if control() */
}
else
{
/*
*--------------------------------------------------------------
* Step 3: Go back to step 1).
*--------------------------------------------------------------
* INVALID INPUT
* -------------
* Inform the user and go back to step 1).
*--------------------------------------------------------------
*/