GNU Radio's DVBS2RX Package
|
PL Descrambler. More...
#include <pl_descrambler.h>
Public Member Functions | |
pl_descrambler (int gold_code) | |
~pl_descrambler () | |
void | descramble (const gr_complex *in, uint16_t payload_len) |
Descramble a PLFRAME payload. | |
const gr_complex * | get_payload () |
Get the descrambled payload. | |
PL Descrambler.
Multiplies the scrambled payload of a PLFRAME by the conjugate of the complex randomization sequence used on the Tx side for PL scrambling. This multiplication effectively undoes the scrambling, and the resulting descrambled payload is stored internally for later access through the get_payload()
method. This processes depends only on the Gold code defining the complex scrambling sequence, which must be provided to the constructor.
gr::dvbs2rx::pl_descrambler::pl_descrambler | ( | int | gold_code | ) |
|
inline |
void gr::dvbs2rx::pl_descrambler::descramble | ( | const gr_complex * | in, |
uint16_t | payload_len ) |
Descramble a PLFRAME payload.
Descrambles a given PLFRAME payload and stores the descrambled result on the internal descrambled payload buffer, which can be accessed through method get_payload()
.
in | (const gr_complex*) Pointer to the target scrambled PLFRAME payload buffer. |
payload_len | (uint16_t) Payload length. |
|
inline |
Get the descrambled payload.