6 ethernet functions, 6 ethernet functions -9 – Solvline Eddy DK Ver 2.20 User Manual
Page 52

Chapter 6. Library
Bit6: RI (0:Low, 1:High)
Bit7: DCD (0:Low, 1:High)
Notice
SB_SetRts
Function
Controls RTS signal line of the serial port.
Format
Void SB_SetRts (int handle, int value);
handle
Handle which opened the serial port.
Parameter Value
0: off Set RTS signal to low.
1: on Set RTS signal to high.
Returns None
Notice
SB_SetDtr
Function
Controls DTR signal line of the serial port.
Format
Void SB_SetDtr (int handle, int value);
handle
Handle which opened the serial port.
Parameter Value
0: off Set DTR signal to low.
1: on Set DTR signal to high.
Returns None
Notice
SB_GetDelaySerial
Function
Calculate and return input delay time for three bytes data with given serial
communication speed in msec unit.
Format
Void SB_GetDelaySerial (int bps);
Parameter
Bps
Serial communication speed
Returns
int
Input delay time
Notice
This function can be used to calculate wait_msec of SB_ReadSerial
function.
When the communication speed is faster than 230400 bps, this function will
return 1 since Eddy’s minimum delay is 1 msec.
6.6 Ethernet functions
These functions deal with the network-related information of Eddy.
These functions are optimized socket API for Eddy, and user can use other API for development by using his or her
6-9