ProSoft Technology MVI69-ADM User Manual
Page 191

MVI-ADM ♦ 'C' Programmable
Application Development Function Library - ADM API
'C' Programmable Application Development Module
Developer's Guide
ProSoft Technology, Inc.
Page 191 of 342
February 20, 2013
ADM_ReadScCfg
Syntax
int ADM_ReadScCfg(ADMHANDLE adm_handle, ADM_INTERFACE * adm_interface_ptr, int
verbose)
Parameters
adm_handle
Handle returned by previous call to ADM_Open
adm_interface_ptr
Pointer to ADM_INTERFACE structure to allow API access to
structures
verbose
Switch to enable status messages to the debug port. A 1 will
enable messages and a 0 will disable the messages.
Description
This function reads the module configuration from the processor. The function
will directly read from the module file name according to what has been set in the
file SC_DATA.txt
. T
he user function can be used to perform boundary checking
on the configuration parameters.
MVI71 Note
This function is used only for the MVI71.
Return Value
ADM_SUCCESS
No errors were encountered
ADM_ERR_NOACCESS
adm_handle does not have access, or configuration was
interrupted by operator.
ADM_ERR_BADPARAM
A parameter is invalid.
Example
ADMHANDLE adm_handle;
ADM_INTERFACE *interface_ptr;
int verbose = 1;
ADM_INTERFACE interface;
interface_ptr = &interface;
if(ADM_ReadScCfg(adm_handle, interface_ptr, 1))
{
printf("ADM_ReadScCfg() failed.");
return 1;
}
See Also
ADM_ScOpen (page 188)