GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > ebfio / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

EBF_swap.c File Reference

Byte swapping routines. More...

#include "EDS/io/EBF_swap.h"
#include "EDS/EDS_endianness.h"

Functions

__inline unsigned int EBF_swap32 (unsigned int w)
 Byte swaps a 32 bit word.
__inline unsigned int EBF_swap16 (unsigned short w)
 Byte swaps a 16 bit words.
__inline void EBF_swap32N (unsigned int *w, int n)
 Byte swaps 32 bit words.
__inline void EBF_swap16N (unsigned short *w, int n)
 Byte swaps 16 bit words.


Detailed Description

Byte swapping routines.

Author:
JJRussell - russell@slac.stanford.edu
This is a cheap version of byte swapping routines. They are meant to be used only locally within this package in an attempt to keep it more or less self-contained.


   CVS $Id: EBF_swap.c,v 1.2 2005/10/13 22:01:02 russell Exp $

Function Documentation

unsigned int EBF_swap16 ( unsigned short  w  ) 

Byte swaps a 16 bit words.

Parameters:
w The 16 bit word to swap

void EBF_swap16N ( unsigned short *  w,
int  n 
)

Byte swaps 16 bit words.

Parameters:
w The array of 16 bit words to swap
n The number of 16 bit words to swap

unsigned int EBF_swap32 ( unsigned int  w  ) 

Byte swaps a 32 bit word.

Parameters:
w The 32 bit word to swap

void EBF_swap32N ( unsigned int *  w,
int  n 
)

Byte swaps 32 bit words.

Parameters:
w The array of 32 bit words to swap
n The number of 32 bit words to swap


Generated on Fri Feb 26 09:16:34 2010 by  doxygen 1.5.3