ProSoft Technology MVI69E-LDM User Manual
Page 87

MVI69E-LDM ♦ "C" Programmable
Contents
Linux Application Development Module
Developer's Manual
ProSoft Technology, Inc.
Page 87 of 130
August 21, 2014
MVI69_GetScanMode
Syntax
int MVI69_GetScanMode (MVI69HANDLE handle,int *mode);
Parameters
handle
handle returned by previous call to MVI69_Open
mode
pointer to a variable that will be updated with the current processor mode
Description
This function is used to query the state of the processor.
handle must be a valid handle returned from MVI69_Open.
mode is a pointer to an integer. When this function returns, this will be set to indicate the
current processor status and shown in the following table:
Name
Description
MVI69_RUN_MODE
Set if processor is in Run mode.
MVI69_PROGRAM_MODE Set if processor is in Program Mode.
Return Value
MVI69_SUCCESS
no errors were encountered
MVI69_ERR_NOACCESS
handle does not have access
Example
MVI69HANDLE handle;
int status;
MVI69_GetProcessorStatus (handle, &status);
if (status == MVI69_RUN_MODE)
//Processor is in Run Mode
else
//Processor is not in Run Mode