GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-0-0

Constituent: encdec     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

bswp.h File Reference

Stripped-down local copy of the PBS swap routines. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Functions

__inline void bswp__store32 (unsigned int *dst, unsigned int val)
 Store the byte-swapped version of val in dst.

__inline unsigned int bswp__load32 (unsigned int *src)
 Return the byte-swapped version of the 32-bit value at dst.

__inline void bswp__store32b (unsigned int *dst, unsigned int val)
 Store the big endian representation of val in dst.

__inline unsigned int bswp__load32b (unsigned int *src)
 Return the big-endian version of the 32-bit value at src.


Detailed Description

Stripped-down local copy of the PBS swap routines.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: bswp.h,v 1.1.1.1 2005/09/23 06:41:07 russell Exp $

Function Documentation

unsigned int bswp__load32 unsigned int *  src  )  [static]
 

Return the byte-swapped version of the 32-bit value at dst.

Returns:
The byte-swapped version of the 32-bit value at dst
Parameters:
src The source location to fetch the 32-bit value from

unsigned int bswp__load32b unsigned int *  src  )  [static]
 

Return the big-endian version of the 32-bit value at src.

Returns:
The big-endian version of the 32-bit value at src
Parameters:
src The location to fetch the 32-bit value from
On big-endian machines, no byte-swapping takes place

void bswp__store32 unsigned int *  dst,
unsigned int  val
[static]
 

Store the byte-swapped version of val in dst.

Parameters:
dst The destination address, must be 32-bit aligned
val The 32-bit value to store

void bswp__store32b unsigned int *  dst,
unsigned int  val
[static]
 

Store the big endian representation of val in dst.

Parameters:
dst The destination address, must be 32-bit aligned
val The 32-bit value to store
On big-endian machine no byte-swapping occurs


Generated on Sat Sep 24 20:30:26 2005 by doxygen 1.3.3