SPUC
3.0
|
Differential QPSK encoder/decoder. More...
#include <dqpsk.h>
Public Member Functions | |
dqpsk () | |
complex< long > | encode (complex< long > c) |
complex< long > | decode (complex< long > c) |
complex< long > | convbits (int sym) |
int | qpsk_sym (complex< long > c) |
Public Attributes | |
int ** | datbase |
int | previous_encoded_symbol |
int | previous_decoded_symbol |
Differential QPSK encoder/decoder.
Encode/Decode the input bits into quaternary qpsk format
SPUC::dqpsk::dqpsk | ( | ) |
Differential encoding/decoding of QPSK Encode/Decode the input bits into quaternary qpsk format
References datbase, previous_decoded_symbol, and previous_encoded_symbol.
complex< long > SPUC::dqpsk::convbits | ( | int | sym | ) |
Differential decoder
References convbits(), datbase, previous_decoded_symbol, and qpsk_sym().
Call qpsk_sym to get equivalent symbol value (0-3) of current input bit pair Get current output symbol (0-3) from encoding data base[curr symbol][prev encoded symbol] Call convbits to convert current encoded symbol to bit pair Previous encoded symbol = current encoded symbol
References convbits(), datbase, previous_encoded_symbol, and qpsk_sym().
int SPUC::dqpsk::qpsk_sym | ( | complex< long > | c | ) |