User`s manual
http://www.adtechcn.com 57
Input parameter
int dev_num: device number
int mode: upload mode
0: upload the currently used parameters of control card to host
1: upload parameters from system files of control card to host
char *file: file name of system parameters. If null character string is input, it means the
default fine name “system.ini” is used.
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note None
9.8
adt8840a_download_sysfile( )
Name int adt8840a_download_sysfile(int dev_num,int mode,SYSPARA *syspara,char *file)
Definition Download parameters of system configuration to control card
Input parameter
int dev_num: device number
int mode: download mode
0: only download parameters to control card but not save the system configuration
files
1: download parameters to control card and save the system configuration files
char *file: file name of system parameters. If null character string is input, it means the
default fine name “system.ini” is used.
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note
The parameters can only be saved in fixed speed mode. To restore the default network
configuration, use the function “adt8840a_FS_Remove()”, delete the “system.ini” files and
then re-electrify the system.
9.9
adt8840a_go_home( )
Name int adt8840a_go_home(int dev_num,HOMEMODE *home_para)
Definition Function for returning to home position
Input parameter
int dev_num: device number
HOMEMODE home_para: structure of parameter for returning to the home position.
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note None