Dialogic
®
System Release 6.1 CompactPCI for Windows
®
Release Update 82
/*
.
.
Main Processing
.
.
*/
/*
Application needs to issue reset on IP channel device handle, nDeviceHandle.
ASSUMPTION: A valid nDeviceHandle was obtained from prior call to ipm_Open()
and session has been started by calling ipm_StartMedia() some time earlier.
ipm_Stop() has been issued on the device and stop completion reply does not
come within acceptable time duration.
*/
if (ipm_ResetChannel(nDeviceHandle, RESET_CHANNEL_STATE, EV_ASYNC) == -1)
{
printf("ipm_ResetChannel failed for device name = %s with error = %d\n",
ATDV_NAMEP(nDeviceHandle), ATDV_LASTERR(nDeviceHandle));
/*
.
.
Perform Error Processing
.
.
*/
}
/*
.
.
Continue Processing
.
.
*/
}
void CheckResetEvent()
{
int nEventType = sr_getevttype();
int nDeviceID = sr_getevtdev();
switch(nEventType)
{
/*
.
.
List of Expected Events
.
.
*/
/* Successful reply from ipm_ResetChannel() */
case IPMEV_RESET:
printf("Received IPMEV_RESET for device = %s",
ATDV_NAMEP(nDeviceID));
break;
/* Failure reply from ipm_ResetChannel() */
case IPMEV_RESET_FAIL"
printf("Received IPMEV_RESET_FAIL for device = %s",
ATDV_NAMEP(nDeviceID));
break;
Kommentare zu diesen Handbüchern