Digi XBee(R) ANSI C Host Library
Functions
swapbytes.c File Reference

For platforms without swap32() and swap16() functions for swapping byte order for 32 and 16-bit values. More...

#include "xbee/platform.h"

Functions

uint32_t swap32 (uint32_t value)
 Swap the byte order of a 32-bit value. More...
 
uint16_t swap16 (uint16_t value)
 Swap the byte order of a 16-bit value. More...
 

Detailed Description

For platforms without swap32() and swap16() functions for swapping byte order for 32 and 16-bit values.

Note
Should be written in assembly for embedded targets.