include/byteorder.h File Reference

Byte order conversion helpers. More...

#include <compiler.h>
#include <types.h>
#include <arch/byteorder.h>

Include dependency graph for byteorder.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define swab32(x)
 Swap the order of bytes in a 32-bit word.


Detailed Description

Byte order conversion helpers.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file byteorder.h.


Define Documentation

#define swab32 (  ) 

Value:

((((x) & 0xff) << 24) | (((x) & 0xff00) << 8)   \
         | (((x) >> 8) & 0xff00) | (((x) >> 24) & 0xff))
Swap the order of bytes in a 32-bit word.

Definition at line 51 of file byteorder.h.


Generated on Tue Sep 15 10:17:55 2009 for libavr32 by  doxygen 1.5.8