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 | Public Attributes | Static Public Attributes | List of all members
leansdr::s2_sof< T > Struct Template Reference

#include <dvbs2.h>

Public Member Functions

 s2_sof ()
 

Public Attributes

complex< T > symbols [LENGTH]
 

Static Public Attributes

static const uint32_t VALUE = 0x18d2e82
 
static const uint32_t MASK = 0x3ffffff
 
static const int LENGTH = 26
 

Detailed Description

template<typename T>
struct leansdr::s2_sof< T >

Definition at line 54 of file dvbs2.h.

Constructor & Destructor Documentation

◆ s2_sof()

template<typename T>
leansdr::s2_sof< T >::s2_sof ( )
inline

Definition at line 60 of file dvbs2.h.

References leansdr::cstln_amp, leansdr::complex< T >::im, leansdr::s2_sof< T >::LENGTH, M_PI, and leansdr::complex< T >::re.

61  {
62  for (int s = 0; s < LENGTH; ++s)
63  {
64  int angle = ((VALUE >> (LENGTH - 1 - s)) & 1) * 2 + (s & 1); // pi/2-BPSK
65  symbols[s].re = cstln_amp * cosf(M_PI / 4 + 2 * M_PI * angle / 4);
66  symbols[s].im = cstln_amp * sinf(M_PI / 4 + 2 * M_PI * angle / 4);
67  }
68  }
#define M_PI
Definition: rdsdemod.cpp:27
complex< T > symbols[LENGTH]
Definition: dvbs2.h:59
static const uint32_t VALUE
Definition: dvbs2.h:56
const float cstln_amp
Definition: sdr.h:404
static const int LENGTH
Definition: dvbs2.h:58

Member Data Documentation

◆ LENGTH

template<typename T>
const int leansdr::s2_sof< T >::LENGTH = 26
static

Definition at line 58 of file dvbs2.h.

Referenced by leansdr::s2_plscodes< T >::s2_plscodes(), and leansdr::s2_sof< T >::s2_sof().

◆ MASK

template<typename T>
const uint32_t leansdr::s2_sof< T >::MASK = 0x3ffffff
static

Definition at line 57 of file dvbs2.h.

◆ symbols

template<typename T>
complex<T> leansdr::s2_sof< T >::symbols[LENGTH]

Definition at line 59 of file dvbs2.h.

◆ VALUE

template<typename T>
const uint32_t leansdr::s2_sof< T >::VALUE = 0x18d2e82
static

Definition at line 56 of file dvbs2.h.


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