GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSEP / V1-0-1

Constituent: lsepw     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

BFP.h File Reference

Bit Field Pack Routines. More...

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


Functions

static __inline unsigned int BFP_wordL (unsigned int *w, unsigned int position, unsigned int field, unsigned int width)
 Packs a left justified bit field into the current position. The width of the bit field must be less than 32 bits.
static __inline unsigned int BFP_wordB (unsigned int *w, unsigned int position, unsigned int bit)
 Packs the value of the bit into the current bit position. The value of the bit is either 0 or 1, or said in a negative fashion, it is not the left justified version, i.e. 0x80000000 or 0.
static __inline unsigned int BFP_wordR (unsigned int *w, unsigned int position, unsigned int field, unsigned int width)
 Packs a right justified bit field into the current position. The width of the bit field must be less than 32 bits.

Detailed Description

Bit Field Pack Routines.

Author:
JJRussell - russell@slac.stanford.edu
Inline functions to (left justified) pack bit fields into a 32-bit output vector. These routines assume that any bits ahead of the current bit position index can be overwritten. In this sense these routines are not equivalent to a bit field insert routine which only write the bits in the designated bit field.

Function Documentation

static __inline unsigned int BFP_wordB unsigned int *  w,
unsigned int  position,
unsigned int  bit
[static]
 

Packs the value of the bit into the current bit position. The value of the bit is either 0 or 1, or said in a negative fashion, it is not the left justified version, i.e. 0x80000000 or 0.

Parameters:
w The output word
position The current bit position
bit The value of the bit to insert (0 or 1)
Returns:
The updated bit position

static __inline unsigned int BFP_wordL unsigned int *  w,
unsigned int  position,
unsigned int  field,
unsigned int  width
[static]
 

Packs a left justified bit field into the current position. The width of the bit field must be less than 32 bits.

Parameters:
w The output word array to insert the bit field into
position The current bit position in the output bit field
field The left justified field to insert
width The width of the field to insert
Returns:
The new bit position (essentially position + width).

static unsigned int BFP_wordR unsigned int *  w,
unsigned int  position,
unsigned int  field,
unsigned int  width
[static]
 

Packs a right justified bit field into the current position. The width of the bit field must be less than 32 bits.

Parameters:
w The output word array to insert the bit field into
position The current bit position in the output bit field
field The left justified field to insert
width The width of the field to insert
Returns:
The new bit position (essentially position + width).


Generated on Tue Dec 6 20:25:32 2005 by  doxygen 1.4.4