Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

General Network Utility Functions

...

NET_UTIL_HOST_TO_NET_16()

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

Files

...

net_util.h Anchor10946801094680 Prototype

...

Prototype

 

Arguments

val

16-bit integer data value to convert.

...

Returned Value

Anchor1094685109468516-bit integer value in network-order. Anchor10946861094686

Required Configuration

...

1094687None. Anchor10946881094688

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.