Publication 1756-RM004B-EN-P - October 2000
CIP Messaging API 4-23
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 IO to safe state
// - Trigger an orderly shutdown
return(MVI_SUCCESS);
}
See Also:
MVIcip_RegisterFlashUpdateRtn