CARMA C++
SlowWalsh.h
Go to the documentation of this file.
1 #ifndef SLOWWALSH_H
2 #define SLOWWALSH_H
3 
18 #define WALSH_ON_BIT 14
19 
24 #define WALSH_PERIOD 16
25 
26 namespace sza {
27  namespace antenna {
28  namespace control {
29 
30 
34  class SlowWalsh {
35 
36  public:
37 
44  SlowWalsh(unsigned short iwalsh);
45 
49  SlowWalsh();
50 
57  void changeFunction(unsigned short iwalsh);
58 
62  bool isInitialized();
63 
67  const int* walshFunction_;
68 
69  private:
70 
77  static const int walshFunctions_[WALSH_PERIOD][WALSH_PERIOD];
78 
82  bool initialized_;
83 
87  bool isValidIndex(unsigned short iwalsh);
88 
89  }; // End class SlowWalsh
90 
91  }; // End namespace control
92  }; // End namespace antenna
93 }; // End namespace sza
94 
95 #endif // End #ifndef
A class to encapsulate slow walsh functions.
Definition: SlowWalsh.h:34
bool isInitialized()
Return true when this object has been initialized.
void changeFunction(unsigned short iwalsh)
Set the walsh function.
const int * walshFunction_
Pointer to a selected Walsh function.
Definition: SlowWalsh.h:67
SlowWalsh()
Constructor without initialization.
#define WALSH_PERIOD
One full Walsh cycle will be 16 states.
Definition: SlowWalsh.h:24