User`s manual
http://www.adtechcn.com 37
1.5 Get_sock ( )
Name unsigned int Get_sock(int dev_num)
Definition Get the raw socket for network communication based on the device number
Input parameter dev_num:device number
Output
parameter
None
Return value Non-zero SOCKET value, “0xffffffff” means the device number is disabled
1.6 Uart_show ( )
Name int Uart_show(int dev_num,unsigned int on_off)
Definition Switch for showing the debugging state of serial interface
Input parameter
dev_num:device number
on_off: switch for showing the debugging state of serial interface. 0: off; 1: display all
information; 2: Only display the non-timed inquiry information.
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note Starting the debugging of serial interface will consume a large number of system resources
1.7 adt8840a_set_stop0_mode( )
Name int adt8840a_set_stop0_mode(int dev_num,int axis, int value, int logic)
Definition Set stop0 singal as enabled/disabled and set its logic level
Input parameter
dev_num: device number
axis: Axis number(1 - 4)
value: 0: disabled 1: Enabled
logic: 0: stop at low level 1: stop at high level
Output
parameter
None
Return value 0: execution OK; -1: transmission abnormity; -4: disabled device interface
Note
Signal in disabled state in initialization, stop at low level;
Immediate stop; STOP1 is the same.
1.8 adt8840a_set_stop1_mode( )
Name int adt8840a_set_stop1_mode(int dev_num,int axis, int value, int logic)
Definition Set stop1 singal as enabled/disabled and set its logic level
Input parameter
dev_num: device number
axis: Axis number(1 - 4)
value: 0: disabled 1: Enabled
logic: 0: stop at low level 1: stop at high level
Output
parameter
None