Prosoft-technology MVI69-ADM Manual de usuario Pagina 288

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
}
Vista de pagina 287
1 2 ... 283 284 285 286 287 288 289 290 291 292 293 ... 341 342

Comentarios a estos manuales

Sin comentarios