GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-4-0
Constituent: encdec     Tag: rad750
#include "LDT/BW.h"


Functions | |
| unsigned int | BWU_expand (unsigned int wrd, unsigned int msk) |
| Expands wrd according to the bits set in msk. This is the inverse operation of BWP_collapse. | |
| unsigned int | BWU_revert (unsigned int wrd, unsigned int nwrd, unsigned int nexp) |
| Reverts wrd to the original integer. This is the inverse operation of BWP_convert. | |
CVS $Id: BWU.h,v 1.1 2006/09/13 17:09:08 russell Exp $
| unsigned int BWU_expand | ( | unsigned int | msk, | |
| unsigned int | wrd | |||
| ) |
Expands wrd according to the bits set in msk. This is the inverse operation of BWP_collapse.
| wrd | The mask to control the expansion | |
| msk | The word to expand |
Example
msk = 0x001101110;
wrd = 0x1011;
Expand wrd where the 0's in msk are
out = 0x001001100;
If one collapsed out
msk = 0x001101110;
out = 0x001001100;
wrd = 1011;
| unsigned int BWU_revert | ( | unsigned int | wrd, | |
| unsigned int | nwrd, | |||
| unsigned int | nexp | |||
| ) |
Reverts wrd to the original integer. This is the inverse operation of BWP_convert.
| wrd | The word to expand | |
| nwrd | The bit field width of the expanded word | |
| nexp | The number of bits in the exponent. |
1.5.3