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.
plugins
channelrx
demoddatv
leansdr
dvb.cpp
Go to the documentation of this file.
1
#include "
dvb.h
"
2
3
namespace
leansdr
4
{
5
6
deconvol_sync_simple
*
make_deconvol_sync_simple
(
scheduler
*sch,
7
pipebuf<eucl_ss>
&_in,
8
pipebuf<u8>
&_out,
9
enum
code_rate
rate)
10
{
11
// EN 300 421, section 4.4.3 Inner coding
12
uint32_t
pX, pY;
13
switch
(rate)
14
{
15
case
FEC12
:
16
pX = 0x1;
// 1
17
pY = 0x1;
// 1
18
break
;
19
case
FEC23
:
20
case
FEC46
:
21
pX = 0xa;
// 1010 (Handle as FEC4/6, no half-symbols)
22
pY = 0xf;
// 1111
23
break
;
24
case
FEC34
:
25
pX = 0x5;
// 101
26
pY = 0x6;
// 110
27
break
;
28
case
FEC56
:
29
pX = 0x15;
// 10101
30
pY = 0x1a;
// 11010
31
break
;
32
case
FEC78
:
33
pX = 0x45;
// 1000101
34
pY = 0x7a;
// 1111010
35
break
;
36
default
:
37
//fail("Code rate not implemented");
38
// For testing DVB-S2 constellations.
39
fprintf(stderr,
"Code rate not implemented; proceeding anyway\n"
);
40
pX = pY = 1;
41
}
42
43
return
new
deconvol_sync_simple
(sch, _in, _out, DVBS_G1, DVBS_G2, pX, pY);
44
}
45
46
}
// leansdr
leansdr::FEC56
Definition:
dvb.h:47
leansdr::FEC46
Definition:
dvb.h:45
dvb.h
leansdr::make_deconvol_sync_simple
deconvol_sync_simple * make_deconvol_sync_simple(scheduler *sch, pipebuf< eucl_ss > &_in, pipebuf< u8 > &_out, enum code_rate rate)
Definition:
dvb.cpp:6
leansdr::FEC34
Definition:
dvb.h:46
leansdr::pipebuf
Definition:
framework.h:203
leansdr::FEC12
Definition:
dvb.h:43
uint32_t
unsigned int uint32_t
Definition:
rtptypes_win.h:46
leansdr::code_rate
code_rate
Definition:
dvb.h:41
leansdr::deconvol_sync_simple
deconvol_sync< u8, 0 > deconvol_sync_simple
Definition:
dvb.h:586
leansdr::FEC23
Definition:
dvb.h:44
leansdr::FEC78
Definition:
dvb.h:48
leansdr
Definition:
datvconstellation.h:28
leansdr::scheduler
Definition:
framework.h:114
leansdr::deconvol_sync
Definition:
dvb.h:115
Generated on Fri Aug 2 2019 17:56:30 for SDRAngel by
1.8.13