...
General Network Utility Functions
...
NET_UTIL_HOST_TO_NET_16()
Anchor
Files
...
net_util.h
1094680 Anchor
...
Prototype
Arguments
val
16-bit integer data value to convert.
...
Returned Value
Anchor
Required Configuration
...
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.