GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-6 > ebfio / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

EBF_swap.c File Reference

Byte swapping routines. More...

#include <EDS/io/EBF_swap.h>
#include <PBI/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.3 2011/03/25 22:16:57 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 Dec 9 16:49:20 2011 by  doxygen 1.5.8