21 #ifndef INCLUDED_SATNOGS_WHITENING_H
22 #define INCLUDED_SATNOGS_WHITENING_H
25 #include <gnuradio/digital/lfsr.h>
26 #include <boost/shared_ptr.hpp>
42 typedef boost::shared_ptr<whitening> whitening_sptr;
45 make(uint32_t mask, uint32_t seed, uint32_t order,
bool msb =
false,
46 bool self_sync =
false);
54 whitening(uint32_t mask, uint32_t seed, uint32_t order,
bool msb =
false,
55 bool self_sync =
false);
63 scramble(uint8_t *out,
const uint8_t *in,
size_t len);
75 const bool d_self_sync;
#define SATNOGS_API
Definition: api.h:30
Performs data whitening and de-whitening.
Definition: whitening.h:35
whitening(uint32_t mask, uint32_t seed, uint32_t order, bool msb=false, bool self_sync=false)
static whitening_sptr make_g3ruh(bool msb=false)
void descramble_one_bit_per_byte(uint8_t *out, const uint8_t *in, size_t bits_num)
static whitening_sptr make_ccsds(bool msb=false)
void scramble_one_bit_per_byte(uint8_t *out, const uint8_t *in, size_t bits_num)
static whitening_sptr make(uint32_t mask, uint32_t seed, uint32_t order, bool msb=false, bool self_sync=false)
static int base_unique_id
Definition: whitening.h:37
void scramble(uint8_t *out, const uint8_t *in, size_t len)
void descramble(uint8_t *out, const uint8_t *in, size_t len)
Definition: amsat_duv_decoder.h:29