SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
leansdr::s2_bbscrambling Struct Reference

#include <dvbs2.h>

Public Member Functions

 s2_bbscrambling ()
 
void transform (const uint8_t *in, int bbsize, uint8_t *out)
 

Private Attributes

uint8_t pattern [58192]
 

Detailed Description

Definition at line 169 of file dvbs2.h.

Constructor & Destructor Documentation

◆ s2_bbscrambling()

leansdr::s2_bbscrambling::s2_bbscrambling ( )
inline

Definition at line 171 of file dvbs2.h.

References i.

172  {
173  uint16_t st = 0x00a9; // 000 0000 1010 1001 (Fig 5 reversed)
174  for (int i = 0; i < sizeof(pattern); ++i)
175  {
176  uint8_t out = 0;
177  for (int n = 8; n--;)
178  {
179  int bit = ((st >> 13) ^ (st >> 14)) & 1; // Taps
180  out = (out << 1) | bit; // MSB first
181  st = (st << 1) | bit; // Feedback
182  }
183  pattern[i] = out;
184  }
185  }
unsigned char uint8_t
Definition: rtptypes_win.h:42
unsigned short uint16_t
Definition: rtptypes_win.h:44
int32_t i
Definition: decimators.h:244
uint8_t pattern[58192]
Definition: dvbs2.h:193

Member Function Documentation

◆ transform()

void leansdr::s2_bbscrambling::transform ( const uint8_t in,
int  bbsize,
uint8_t out 
)
inline

Definition at line 186 of file dvbs2.h.

References i.

187  {
188  for (int i = 0; i < bbsize; ++i)
189  out[i] = in[i] ^ pattern[i];
190  }
int32_t i
Definition: decimators.h:244
uint8_t pattern[58192]
Definition: dvbs2.h:193

Member Data Documentation

◆ pattern

uint8_t leansdr::s2_bbscrambling::pattern[58192]
private

Definition at line 193 of file dvbs2.h.


The documentation for this struct was generated from the following file: