GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-5 > ebfio / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

EBF_swap.h File Reference

DAQE word swapping utilities, Interface. More...


Functions

unsigned int EBF_swap32 (unsigned int w)
 Byte swaps a 32 bit word.
unsigned int EBF_swap32_lclXbig (unsigned int w)
 Byte swaps a 32 bit word; local representation <=> big.
unsigned int EBF_swap32_lclXlittle (unsigned int w)
 Byte swaps a 32 bit word; local representation <=> little.
unsigned int EBF_swap16 (unsigned short w)
 Byte swaps a 16 bit words.
unsigned int EBF_swap16_lclXbig (unsigned short w)
 Byte swap a 16 bit words; local representation <=> big.
unsigned int EBF_swap16_lclXlittle (unsigned short w)
 Byte swaps a 16 bit words; local representation <=> little.
void EBF_swap32N (unsigned int *w, int n)
 Byte swaps 32 bit words.
void EBF_swap32_lclXbigN (unsigned int *w, int n)
 Byte swaps 32 bit words; local representation <=> big.
void EBF_swap32_lclXlittleN (unsigned int *w, int n)
 Byte swaps 32 bit words; local representation <=> little.
void EBF_swap16N (unsigned short *w, int n)
 Byte swaps 16 bit words.
void EBF_swap16_lclXbigN (unsigned short *w, int n)
 Byte swaps 16 bit words; local representation <=> big.
void EBF_swap16_lclXlittleN (unsigned short *w, int n)
 Byte swaps 16 bit words; local representation <=> little.


Detailed Description

DAQE word swapping utilities, Interface.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: EBF_swap.h,v 1.2 2005/10/13 22:00: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

unsigned short EBF_swap16_lclXbig ( unsigned short  w  ) 

Byte swap a 16 bit words; local representation <=> big.

Parameters:
w The 16 bit words to swap

void EBF_swap16_lclXbigN ( unsigned short *  w,
int  n 
)

Byte swaps 16 bit words; local representation <=> big.

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

void EBF_swap16_lclXlittle ( unsigned short  w  ) 

Byte swaps a 16 bit words; local representation <=> little.

Parameters:
w The 16 bit words to swap

void EBF_swap16_lclXlittleN ( unsigned short *  w,
int  n 
)

Byte swaps 16 bit words; local representation <=> little.

Parameters:
w The array of 16 bit words to swap
n The number of 16 bit words 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

unsigned int EBF_swap32_lclXbig ( unsigned int  w  ) 

Byte swaps a 32 bit word; local representation <=> big.

Parameters:
w The 32 bit word to swap

void EBF_swap32_lclXbigN ( unsigned int *  w,
int  n 
)

Byte swaps 32 bit words; local representation <=> big.

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

unsigned int EBF_swap32_lclXlittle ( unsigned int  w  ) 

Byte swaps a 32 bit word; local representation <=> little.

Parameters:
w The 32 bit word to swap

void EBF_swap32_lclXlittleN ( unsigned int *  w,
int  n 
)

Byte swaps 32 bit words; local representation <=> little.

Parameters:
w The array of 32 bit words to swap
n The number of 32 bit words 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 Tue Nov 29 16:58:35 2011 by  doxygen 1.5.8