GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LDT / dev > encdec / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

BTD.c File Reference

Binary Tree Encoding routines. More...

#include <PBI/FFS.ih>
#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 Thu Feb 9 12:21:10 2012 by  doxygen 1.5.8