EmerlinTwoBitTable.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2011 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __EmerlinTwoBitTable_h
10 #define __EmerlinTwoBitTable_h
11 
12 #include "dsp/TwoBitTable.h"
13 
14 namespace dsp {
15 
17 
21  class EmerlinTwoBitTable : public TwoBitTable {
22 
23  public:
24 
26  EmerlinTwoBitTable () : TwoBitTable (TwoBitTable::OffsetBinary) {
27  destroy();
28  build();
29  }
30 
32  ~EmerlinTwoBitTable () { }
33 
35  virtual unsigned extract (unsigned byte, unsigned sample) const;
36 
37  };
38 
39 }
40 
41 #endif // !defined(__EmerlinTwoBitTable_h)
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
~EmerlinTwoBitTable()
Destructor.
Definition: EmerlinTwoBitTable.h:42
void build()
Build the lookup table.
Definition: BitTable.C:104
EmerlinTwoBitTable()
Constructor.
Definition: EmerlinTwoBitTable.h:36
Look-up table for converting 2-bit digitized to floating point numbers.
Definition: TwoBitTable.h:25
virtual unsigned extract(unsigned byte, unsigned sample) const
Return the 2-bit number from byte corresponding to sample.
Definition: EmerlinTwoBitTable.C:10
void destroy()
Destroy the lookup table.
Definition: BitTable.C:60

Generated using doxygen 1.8.17