ProSoft Technology MVI69-ADM User Manual

Page 286

Advertising
background image

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)

Advertising