ProSoft Technology MVI69-ADM User Manual

Page 287

Advertising
background image

MVI-ADM ♦ 'C' Programmable

CIP Messaging Library Functions

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 287 of 342

February 20, 2013

flashupdate_proc

Syntax

MVICALLBACK flashupdate_proc( );

Parameters
None

Description
flashupdate_proc is an optional callback function which may be passed to the
CIP API in the MVIcip_RegisterFlashUpdateRtn call. If the flashupdate_proc
callback has been registered, it will be called if the backplane device driver
receives a flash update command. This allows the application an opportunity to
take appropriate actions before it is stopped.

Return Value
The flashupdate_proc routine must return MVI_SUCCESS.

Example

MVIHANDLE Handle;
MVICALLBACK flashupdate_proc( void )
{
// Take whatever action is appropriate for the application:
// - Set local I/O to safe state
// - Trigger an orderly shutdown
return(MVI_SUCCESS);
}

See Also
MVIcip_RegisterFlashUpdateRtn (page 291)

Advertising