Prosoft-technology MVI69-ADM Manuale Utente Pagina 196

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 342
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 195
Application Development Function Library - ADM API MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 196 of 342 ProSoft Technology, Inc.
February 20, 2013
ADM_RAM_GetInt
Syntax
unsigned short ADM_RAM_GetInt(ADMHANDLE adm_handle, char huge * mydata, char *
Topic);
Parameters
adm_handle
Handle returned by previous call to ADM_Open
mydata
Pointer return from ADM_RAM_Find_Section.
Topic
Pointer to name of a variable.
Description
ADM_RAM_GetInt tries to find the Topic name passed to the function in the file.
Return Value
Value of type Integer found under the Topic name or 0 if the sub-section is not
found.
Example
module.err_offset = ADM_RAM_GetInt(adm_handle, tptr, "Baud Rate");
if(module.err_offset < 0 || module.err_offset > module.max_regs-61)
{
module.err_offset = -1;
module.err_freq = 0;
}
else
{
module.err_freq = 500;
}
Vedere la pagina 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 341 342

Commenti su questo manuale

Nessun commento