GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSE / V2-1-0 > lsew / rad750


Interface   Data Structures   File List   Data Fields   Globals  

CDF_acd_maps.h File Reference

Contains pre-canned maps for the ACD packing. More...


Defines

#define _CDF_ACD_PAT_MAP(_n, _p)   (((_p) << 4) | _n)
 Composes a 16 bit value of a 12 bit pattern and 4 bit length This is used to compress the ACD.
#define _CDF_ACD_PAT_MAP_N(_m)   ((_m) & 0xf)
 Extracts the length field from the map.
#define _CDF_ACD_PAT_MAP_P(_m)   (((_m) >> 4) & 0xfff)
 Extracts the right justified pattern from the map.
#define _CDF_ACD_PAT_MAP_STD
 Defines the ACD standard encoding map.


Detailed Description

Contains pre-canned maps for the ACD packing.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: CDF_acd_maps.h,v 1.2 2006/11/19 15:42:19 russell Exp $

Define Documentation

#define _CDF_ACD_PAT_MAP ( _n,
_p   )     (((_p) << 4) | _n)

Composes a 16 bit value of a 12 bit pattern and 4 bit length This is used to compress the ACD.

Returns:
The composed value
Parameters:
_n The length of the pattern in bits, must bit < 12
_p The pattern. The number of significant bits must < 12.

#define _CDF_ACD_PAT_MAP_N ( _m   )     ((_m) & 0xf)

Extracts the length field from the map.

Returns:
The extracted length field
Parameters:
_m The map value

Referenced by acd_std_pack_pat32().

#define _CDF_ACD_PAT_MAP_P ( _m   )     (((_m) >> 4) & 0xfff)

Extracts the right justified pattern from the map.

Returns:
The right justified pattern
Parameters:
_m The map value

Referenced by acd_std_pack_pat32().


Generated on Sat Apr 9 20:21:25 2011 by  doxygen 1.5.8