/
NET_UTIL_HOST_TO_NET_16
NET_UTIL_HOST_TO_NET_16
Convert 16-bit integer values from CPU host-order to network-order.
Files
net_util.h
Prototype
NET_UTIL_HOST_TO_NET_16(val);
Arguments
val
16-bit integer data value to convert.
Returned Value
16-bit integer value in network-order.
Required Configuration
None.
Notes / Warnings
For microprocessors that require data access to be aligned to appropriate word boundaries, val and any variable to receive the returned 16-bit integer must start on appropriately-aligned CPU addresses. This means that all 16-bit words must start on addresses that are multiples of 2 bytes.
, multiple selections available,
Related content
NetTCP_ConnStateGet()
NetTCP_ConnStateGet()
Read with this
NET_UTIL_NET_TO_HOST_16
NET_UTIL_NET_TO_HOST_16
More like this
NET_UTIL_NET_TO_HOST_32
NET_UTIL_NET_TO_HOST_32
More like this
NET_UTIL_HOST_TO_NET_32
NET_UTIL_HOST_TO_NET_32
More like this
ntohs
More like this
htons
More like this