Ethernet functions, 6 ethernet functions – Solvline Eddy DKV2.1.0.3 User Manual
Page 87
Chapter 6. Library
Introduction
87
SB_SetRts
Function
Controls RTS signal line of the serial port.
Format
Void SB_SetRts (int handle, int value);
Parameter
handle
Handle to serial port.
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);
Parameter
handle
Handle to serial port.
Value
0: off Set DTR signal to low.
1: on Set DTR signal to high.
Returns
None
Notice
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 own POSIX compatible standard socket API.
SB_GetIp
Function
Reads IP address assigned to Eddy.
Format
Unsigned int SB_GetIp (char *interface);
Parameter
Interface
Network interface name.
‚eth0‛ for WAN port.
‚eth1‛ for LAN port.
Returns
Unsigned int
returns IP address in unsigned int type.
Notice
Note that the function returns operating IP address, not the IP address
configured in Eddy. When Eddy is operating as a DHCP Client, this function
read network IP address assigned from DHCP server.
Please see below for transforming IP address into string type.