GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LDT / V0-5-0 > encdec / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

BTD.c File Reference

Binary Tree Encoding routines. More...

#include "ffs.h"
#include "LDT/BTD.h"

Functions

unsigned int BTD_wordDecode (unsigned int w, unsigned int scheme, int *nbits)
 Decodes the bits in w according to scheme.
unsigned int BTD_shortDecode (unsigned short int s, unsigned int scheme, int *nbits)
 Decodes the bits in w according to scheme.


Detailed Description

Binary Tree Encoding routines.

Author:
JJRussell - russell@slac.stanford.edu
Routines to encode bit strings using a binary tree

    CVS $Id

Function Documentation

unsigned int BTD_shortDecode ( unsigned short int  s,
unsigned int  scheme,
int *  nbits 
)

Decodes the bits in w according to scheme.

Returns:
The decoded short word
Parameters:
s The encoded bits
scheme The encoding scheme
nbits Returns the number of bits decoded.

unsigned int BTD_wordDecode ( unsigned int  w,
unsigned int  scheme,
int *  nbits 
)

Decodes the bits in w according to scheme.

Returns:
The decoded word
Parameters:
w The encoded bits
scheme The encoding scheme
nbits Returns the number of bits decoded.


Generated on Mon Aug 23 09:43:46 2010 by  doxygen 1.5.3