
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
Handle returned by previous call to ADM_Open
Pointer to ADM_INTERFACE structure to allow API access to
structures
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. The 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
No errors were encountered
adm_handle does not have access, or configuration was
interrupted by operator.
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)
Komentarze do niniejszej Instrukcji