23 #ifndef _ATSC_RANDOMIZER_H_
24 #define _ATSC_RANDOMIZER_H_
37 friend class qa_atsci_randomizer;
56 unsigned int state()
const {
return d_state; }
59 static void initialize_output_map ();
60 static unsigned char slow_output_map (
int st);
62 static unsigned char fast_output_map (
int st){
63 return s_output_map[(st & 0xb23c) >> 2];
70 unsigned char output (){
71 return fast_output_map (d_state);
77 d_state = ((d_state ^ MASK) >> 1) | 0x8000;
79 d_state = d_state >> 1;
83 unsigned char output_and_clk (){
84 unsigned char r = output ();
91 static const unsigned int PRELOAD_VALUE = 0x018f;
92 static const unsigned int MASK = 0xa638;
93 static unsigned char s_output_map[1 << 14];
94 static bool s_output_map_initialized_p;
#define ATSC_API
Definition: gr-atsc/include/gnuradio/atsc/api.h:30
Definition: gr-atsc/include/gnuradio/atsc/types.h:160
Definition: gr-atsc/include/gnuradio/atsc/types.h:144
unsigned int state() const
Definition: randomizer_impl.h:56
ATSC data "whitener".
Definition: randomizer_impl.h:36