MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- ------------------------------------------------------- 1.00a rpm 11/07/03 Added InSwap/OutSwap routines for endian conversion 1.01a ecm 02/24/06 CR225908 corrected the extra curly braces in macros and bumped version to 1.01.a. 2.11a mta 03/21/07 Updated to new coding style.
#include "xio.h"
#include "xil_types.h"
#include "xil_assert.h"
Functions | |
void | XIo_EndianSwap16 (u16 Source, u16 *DestPtr) |
void | XIo_EndianSwap32 (u32 Source, u32 *DestPtr) |
u16 | XIo_InSwap16 (XIo_Address InAddress) |
u32 | XIo_InSwap32 (XIo_Address InAddress) |
void | XIo_OutSwap16 (XIo_Address OutAddress, u16 Value) |
void | XIo_OutSwap32 (XIo_Address OutAddress, u32 Value) |
|
Performs a 16-bit endian converion.
|
|
Performs a 32-bit endian converion.
|
|
Performs an input operation for a 16-bit memory location by reading from the specified address and returning the byte-swapped value read from that address.
|
|
Performs an input operation for a 32-bit memory location by reading from the specified address and returning the byte-swapped value read from that address.
|
|
Performs an output operation for a 16-bit memory location by writing the specified value to the the specified address. The value is byte-swapped before being written.
|
|
Performs an output operation for a 32-bit memory location by writing the specified value to the the specified address. The value is byte-swapped before being written.
|