6 #define MyByteSwap16(n) \
7 ( ((((uint16_t) n) << 8) & 0xFF00) | \
8 ((((uint16_t) n) >> 8) & 0x00FF) )
10 #define MyByteSwap32(n) \
11 ( ((((uint32_t) n) << 24) & 0xFF000000) | \
12 ((((uint32_t) n) << 8) & 0x00FF0000) | \
13 ((((uint32_t) n) >> 8) & 0x0000FF00) | \
14 ((((uint32_t) n) >> 24) & 0x000000FF) )
16 #define MyByteSwap32_1(in, out) \
24 #define MyByteSwap16_1(in, out) \
Arch independent mcu ( Micro Controller Unit ) utilities.
#define MyByteSwap16_1(in, out)
#define MyByteSwap32_1(in, out)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.