SPUC  3.0
Public Member Functions | Public Attributes | List of all members

Data scrambler. More...

#include <bit_scrambler.h>

Public Member Functions

 bit_scrambler (long gen=0x48, long bits=7, long uinit=-1)
 
void reset ()
 
bool scramble (bool data_in)
 
bool xor_bits (long x)
 Exclusive or reduction. More...
 

Public Attributes

unsigned long g
 
long span
 
unsigned long u
 

Detailed Description

Data scrambler.

Does scrambling function on input bits

Author
Tony Kirke

Constructor & Destructor Documentation

SPUC::bit_scrambler::bit_scrambler ( long  gen = 0x48,
long  bits = 7,
long  uinit = -1 
)
inline

Member Function Documentation

void SPUC::bit_scrambler::reset ( )
inline
bool SPUC::bit_scrambler::scramble ( bool  data_in)

References g, u, and xor_bits().

Here is the call graph for this function:

bool SPUC::bit_scrambler::xor_bits ( long  x)

Exclusive or reduction.

References span.

Referenced by scramble().

Member Data Documentation

unsigned long SPUC::bit_scrambler::g

Referenced by scramble().

long SPUC::bit_scrambler::span

Referenced by xor_bits().

unsigned long SPUC::bit_scrambler::u

Referenced by scramble().


The documentation for this class was generated from the following files: