User`s manual

http://www.adtechcn.com 55
) 9. System
9.1
adt8840a_FS_Remove( )
Name int adt8840a_FS_Remove(int dev_num,const char *pFileName)
Definition Delete file
Input parameter
int dev_num: device number
char *pFileName: file’s path name
Output
parameter
None
Return value
0: execution OK; 1: execution failure; -1: transmission abnormity; -2: response overtime;
-3: abnormal data received; -4: disabled device interface
Note None
9.2
adt8840a_Net_Setup( )
Name int adt8840a_Net_Setup(int dev_num,char *IP,char *MASK,char *Gateway,char *MAC)
Definition Carry out network configuration for control card
Input parameter
int dev_num: device number
char *IP: IP address
char *MASK: subnet mask
char *Gateway: IP address of gateway
char *MAC: MAC address of control card
Output
parameter
None
Return value
0: execution OK; 1: execution failure; -1: transmission abnormity; -2: response overtime;
-3: abnormal data received; -4: disabled device interface
Note
To restore the default network configuration, use the function “adt8840a_FS_Remove()”,
delete the “net.txt” files and then re-electrify the system.
9.3
adt8840a_set_speed_mode( )
Name int adt8840a_set_speed_mode(int dev_num,int mode)
Definition Set the speed mode
Input parameter
int dev_num: device number
int mode: 0: free mode; 1: fixed mode
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface