GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-2 > latc_test_embd / rad750


Interface   Data Structures   File List   Data Fields   Globals  

mask_be.ic File Reference

Set and get field and register functions. More...


Classes

union  ull_mask
 union of an unsigned long long and a two element array of unsigneds used to create bit masks for the ull routines More...

Functions

static void maskShortFld (const FldDescription *fd, int regId, int fldId, unsigned short *value)
 Mask down the value to fit into the field.
static void maskLngLngFld (const FldDescription *fd, int regId, int fldId, unsigned long long *value)
 Mask down the value to the size of the field.


Detailed Description

Set and get field and register functions.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

void maskLngLngFld ( const FldDescription fd,
int  regId,
int  fldId,
unsigned long long *  value 
) [inline, static]

Mask down the value to the size of the field.

Parameters:
fd Description of the fields in the register
regId Enum specifying register to write to (previously bounds checked)
fldId Enum specifying field to write to (previously bounds checked)
value Set the target registers to cpt.

References ull_mask::uia, ull_mask::ull, and FldDescription::width.

Referenced by maskFld().

void maskShortFld ( const FldDescription fd,
int  regId,
int  fldId,
unsigned short *  value 
) [inline, static]

Mask down the value to fit into the field.

Parameters:
fd Description of the fields in the register
regId Enum specifying register to write to (previously bounds checked)
fldId Enum specifying field to write to (previously bounds checked)
value Value to set the field to.

References FldDescription::width.

Referenced by maskFld().


Generated on Fri Apr 1 22:26:53 2011 by  doxygen 1.5.8