Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 3.01.00

Convert 16-bit integer values from CPU host-order to network-order.

Files

net_util.h

Prototype

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.