Prosoft-technology MVI69-ADM Manual de usuario Pagina 191

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 190
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. 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
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)
Vista de pagina 190
1 2 ... 186 187 188 189 190 191 192 193 194 195 196 ... 341 342

Comentarios a estos manuales

Sin comentarios