Advantech MIC-3369C Guide d'installation Page 82

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 161
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 81
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;
Vue de la page 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 160 161

Commentaires sur ces manuels

Pas de commentaire