# 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.

- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All devices
- AppNote:

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

Definition in file byteorder.h.

## Define Documentation

#define swab32 | ( | x |  | ) |

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.