Prosoft-technology MVI69-ADM Manual de usuario Pagina 286

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 285
CIP Messaging Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 286 of 342 ProSoft Technology, Inc.
February 20, 2013
fatalfault_proc
Syntax
MVICALLBACK fatalfault_proc( );
Parameters
None
Description
fatalfault_proc is an optional callback function which may be passed to the CIP
API in the MVIcip_RegisterFatalFaultRtn call. If the fatalfault_proc callback has
been registered, it will be called if the backplane device driver detects a fatal fault
condition. This allows the application an opportunity to take appropriate actions.
Return Value
The fatalfault_proc routine must return MVI_SUCCESS.
Example
MVIHANDLE Handle;
MVICALLBACK fatalfault_proc( void )
{
// Take whatever action is appropriate for the application:
// - Set local I/O to safe state
// - Log error
// - Attempt recovery (for example, restart module)
return(MVI_SUCCESS);
}
See Also
MVIcip_RegisterFatalFaultRtn; (page 289)
Vista de pagina 285
1 2 ... 281 282 283 284 285 286 287 288 289 290 291 ... 341 342

Comentarios a estos manuales

Sin comentarios