RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
372
Ctrl Command eth_get_static_ip
Function Returns static IP address, subnet mask and gateway address which are saved on the
RTC6 Ethernet Board.
Call
Result = eth_get_static_ip( &Ip, &NetMask, &Gateway )
Result Error code.
As an unsigned 32-bit value.
0: Success: OK.
1: Error. Not an RTC6 Ethernet Board.
Parameters None.
Returned
parameter
values
Ip
Static IP address in Big Endian byte order.
As a pointer to an unsigned 32-bit value.
NetMask
Sub net mask in Big Endian byte order.
As a pointer to an unsigned 32-bit value.
Gateway
Address of the gateway in Big Endian byte order.
As a pointer to an unsigned 32-bit value.
All values are each 0, if the board is not an RTC6 Ethernet Board or a static IP address has
not been programmed yet.
Comments • To convert from Big Endian byte order to the usual dotted decimal notation,
eth_convert_ip_to_string can be used. See also Chapter 16.5.1 ”Notes on Working
with IP Addresses”, page 904.
• The values can also be queried by eth_get_card_info.
RTC4RTC6 New command.
RTC5RTC6 New command.
Version info Available as of DLL 606, OUT 606, RBF 611.
References eth_convert_ip_to_string, eth_get_card_info, eth_set_static_ip