SeaTrac Serial Command Interface Reference
Page 54
6.4.6.
IPADDR_T (IP v4 Address)
The network IP address structure can be defined either an array of 4 sequential bytes or a
single UINT32 value (or a union of both).
In C++, this definition could be represented as…
struct IpAddr_T {
union
{
uint32
Addr;
uint8
Bytes[4];
};
};
Parameter Type
Description
BYTES
UINT8[4]
The 4 IP address fields in reverse order to the
writing convention. (i.e. “<byte3> . <byte2> .
<byte1> . <byte0>”)
Or (Union)…
ADDR
UINT32
Little Endian representation of IP address fields
stored in reverse order.
For example an IP address of 192.168.0.1 would be stored in an array as…
IP[0] = 1, IP[1] = 0, IP[2] = 168, IP[3] = 192
In turn, this array would map to a little-endian UINT32 value as…
IPVAL = (192 << 24) + (168 << 16) + (0 << 8) + (1 << 0)
IPVAL = 3221 11 0 + 1
IPVAL
=
3232235521
Содержание seatrac X100 Series
Страница 2: ......
Страница 6: ...SeaTrac Serial Command Interface Reference Page 6...
Страница 139: ......