XBee Firmware Library  1.6.0
Files | Functions
Byte-swapping functions

Files

file  byteorder.h
 
file  swapbytes.c
 
file  swapcpy.c
 

Functions

void _swapcpy (void FAR *dst, const void FAR *src, uint_fast8_t count)
 
XBEE_BEGIN_DECLS uint16_t swap16 (uint16_t value)
 Swap the byte order of a 16-bit value. More...
 
uint32_t swap32 (uint32_t value)
 Swap the byte order of a 32-bit value. More...
 

Detailed Description

Function Documentation

void _swapcpy ( void FAR *  dst,
const void FAR *  src,
uint_fast8_t  count 
)
uint16_t swap16 ( uint16_t  value)

Swap the byte order of a 16-bit value.

Parameters
[in]valuevalue to swap
Returns
new 16-bit value with opposite endianness of value
uint32_t swap32 ( uint32_t  value)

Swap the byte order of a 32-bit value.

Parameters
[in]valuevalue to swap
Returns
new 32-bit value with opposite endianness of value