# /space/home/slher/rel/Beken/v6_4_5/macsw/modules/common/src/co_endian.h File Reference

Common endianness conversion functions. More...

`#include "co_int.h"`
`#include "rwnx_config.h"`
`#include "compiler.h"`
`#include "arch.h"`

Go to the source code of this file.

## Functions
__INLINE uint32_t | co_bswap32 (uint32_t val32)
| Swap bytes of a 32 bits value.
__INLINE uint16_t | co_bswap16 (uint16_t val16)
| Swap bytes of a 16 bits value.
__INLINE uint32_t | co_htonl (uint32_t hostlong)
| Convert host to network long word.
__INLINE uint16_t | co_htons (uint16_t hostshort)
| Convert host to network short word.
__INLINE uint32_t | co_ntohl (uint32_t netlong)
| Convert network to host long word.
__INLINE uint16_t | co_ntohs (uint16_t netshort)
| Convert network to host short word.
__INLINE uint32_t | co_htowl (uint32_t hostlong)
| Convert host to wlan long word.
__INLINE uint16_t | co_htows (uint16_t hostshort)
| Convert host to wlan short word.
__INLINE uint32_t | co_wtohl (uint32_t wlanlong)
| Convert wlan to host long word.
__INLINE uint16_t | co_wtohs (uint16_t wlanshort)
| Convert wlan to host short word.

## Detailed Description

Common endianness conversion functions.

Copyright (C) RivieraWaves 2011-2019

Definition in file co_endian.h.