Prosoft-technology MVI69-ADM Manuel d'utilisateur Page 288

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 342
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 287
CIP Messaging Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 288 of 342 ProSoft Technology, Inc.
February 20, 2013
resetrequest_proc
Syntax
MVICALLBACK resetrequest_proc( );
Parameters
None
Description
resetrequest_proc is an optional callback function which may be passed to the
CIP API in the MVIcip_RegisterResetReqRtn call. If the resetrequest_proc
callback has been registered, it will be called if the backplane device driver
receives a module reset request (Identity Object reset service). This allows the
application an opportunity to take appropriate actions to prepare for the reset, or
to refuse the reset.
Return Value
MVI_SUCCESS
the module will reset upon return from the callback
MVI_ERR_INVALID
the module will not be reset and will continue normal operation
Example
MVIHANDLE Handle;
MVICALLBACK resetrequest_proc( void )
{
// Take whatever action is appropriate for the application:
// - Set local I/O to safe state
// - Perform orderly shutdown
// - Reset special hardware
// - Refuse the reset
return(MVI_SUCCESS); // allow the reset
}
Vue de la page 287
1 2 ... 283 284 285 286 287 288 289 290 291 292 293 ... 341 342

Commentaires sur ces manuels

Pas de commentaire