GNU Radio 3.7.2 C++ API
gr::digital Namespace Reference

Classes

class  additive_scrambler_bb
 Scramble an input stream using an LFSR. More...
 
class  binary_slicer_fb
 slice float binary symbol outputting 1 bit output More...
 
class  clock_recovery_mm_cc
 Mueller and Müller (M&M) based clock recovery block with complex input, complex output. More...
 
class  clock_recovery_mm_ff
 Mueller and Müller (M&M) based clock recovery block with float input, float output. More...
 
class  cma_equalizer_cc
 Implements constant modulus adaptive filter on complex stream. More...
 
class  constellation
 An abstracted constellation object. More...
 
class  constellation_calcdist
 Calculate Euclidian distance for any constellationConstellation which calculates the distance to each point in the constellation for decision making. Inefficient for large constellations. More...
 
class  constellation_sector
 Sectorized digital constellationConstellation space is divided into sectors. Each sector is associated with the nearest constellation point. More...
 
class  constellation_rect
 Rectangular digital constellationOnly implemented for 1-(complex)dimensional constellation. More...
 
class  constellation_expl_rect
 Rectangular digital constellationOnly implemented for 1-(complex)dimensional constellation. More...
 
class  constellation_psk
 constellation_pskConstellation space is divided into pie slices sectors. More...
 
class  constellation_bpsk
 Digital constellation for BPSK. More...
 
class  constellation_qpsk
 Digital constellation for QPSK

01 | 11

00 | 10. More...
 
class  constellation_dqpsk
 Digital constellation for DQPSK

01 | 00

11 | 10. More...
 
class  constellation_8psk
 Digital constellation for 8PSK
101 | 100

001 | 000

011 | 010 111 | 110. More...
 
class  constellation_decoder_cb
 Constellation Decoder. More...
 
class  constellation_receiver_cb
 This block makes hard decisions about the received symbols (using a constellation object) and also fine tunes phase synchronization. More...
 
class  constellation_soft_decoder_cf
 Constellation Decoder. More...
 
class  correlate_access_code_bb
 Examine input for specified access code, one bit at a time. More...
 
class  correlate_access_code_tag_bb
 Examine input for specified access code, one bit at a time. More...
 
class  correlate_and_sync_cc
 Correlate to a preamble and send time/phase sync info. More...
 
class  costas_loop_cc
 A Costas loop carrier recovery module. More...
 
class  cpmmod_bc
 Generic CPM modulator. More...
 
class  crc32_bb
 Byte-stream CRC block. More...
 
class  descrambler_bb
 Descramber an input stream using an LFSR. More...
 
class  diff_decoder_bb
 Differential encoder: y[0] = (x[0] - x[-1]) % M. More...
 
class  diff_encoder_bb
 Differential decoder: y[0] = (x[0] + y[-1]) % M. More...
 
class  diff_phasor_cc
 Differential decoding based on phase change. More...
 
class  fll_band_edge_cc
 Frequency Lock Loop using band-edge filters. More...
 
class  framer_sink_1
 Given a stream of bits and access_code flags, assemble packets. More...
 
class  glfsr
 Galois Linear Feedback Shift Register using specified polynomial mask. More...
 
class  glfsr_source_b
 Galois LFSR pseudo-random source. More...
 
class  glfsr_source_f
 Galois LFSR pseudo-random source generating float outputs -1.0 - 1.0. More...
 
class  header_payload_demux
 Header/Payload demuxer. More...
 
class  kurtotic_equalizer_cc
 Implements a kurtosis-based adaptive equalizer on complex stream. More...
 
class  lfsr
 Fibonacci Linear Feedback Shift Register using specified polynomial mask. More...
 
class  lms_dd_equalizer_cc
 Least-Mean-Square Decision Directed Equalizer (complex in/out) More...
 
class  map_bb
 output[i] = map[input[i]] More...
 
class  mpsk_receiver_cc
 This block takes care of receiving M-PSK modulated signals through phase, frequency, and symbol synchronization. More...
 
class  mpsk_snr_est
 A parent class for SNR estimators, specifically for M-PSK signals in AWGN channels. More...
 
class  mpsk_snr_est_simple
 SNR Estimator using simple mean/variance estimates. More...
 
class  mpsk_snr_est_skew
 SNR Estimator using skewness correction. More...
 
class  mpsk_snr_est_m2m4
 SNR Estimator using 2nd and 4th-order moments. More...
 
class  snr_est_m2m4
 SNR Estimator using 2nd and 4th-order moments. More...
 
class  mpsk_snr_est_svr
 Signal-to-Variation Ratio SNR Estimator. More...
 
class  mpsk_snr_est_cc
 A block for computing SNR of a signal. More...
 
class  ofdm_carrier_allocator_cvc
 Create frequency domain OFDM symbols from complex values, add pilots. More...
 
class  ofdm_chanest_vcvc
 Estimate channel and coarse frequency offset for OFDM from preamblesInput: OFDM symbols (in frequency domain). The first one (or two) symbols are expected to be synchronisation symbols, which are used to estimate the coarse freq offset and the initial equalizer taps (these symbols are removed from the stream). The following n_data_symbols are passed through unmodified (the actual equalisation must be done elsewhere). Output: The data symbols, without the synchronisation symbols. The first data symbol passed through has two tags: 'ofdm_sync_carr_offset' (integer), the coarse frequency offset as number of carriers, and 'ofdm_sync_eq_taps' (complex vector). Any tags attached to the synchronisation symbols are attached to the first data symbol. All other tags are propagated as expected. More...
 
class  ofdm_cyclic_prefixer
 Adds a cyclic prefix and performs pulse shaping on OFDM symbols. More...
 
class  ofdm_equalizer_base
 
class  ofdm_equalizer_1d_pilots
 
class  ofdm_equalizer_simpledfe
 
class  ofdm_equalizer_static
 
class  ofdm_frame_acquisition
 take a vector of complex constellation points in from an FFT and performs a correlation and equalization. More...
 
class  ofdm_frame_equalizer_vcvc
 OFDM frame equalizer. More...
 
class  ofdm_frame_sink
 Takes an OFDM symbol in, demaps it into bits of 0's and 1's, packs them into packets, and sends to to a message queue sink. More...
 
class  ofdm_insert_preamble
 insert "pre-modulated" preamble symbols before each payload. More...
 
class  ofdm_mapper_bcv
 take a stream of bytes in and map to a vector of complex constellation points suitable for IFFT input to be used in an ofdm modulator. More...
 
class  ofdm_sampler
 does the rest of the OFDM stuff More...
 
class  ofdm_serializer_vcc
 Serializes complex modulations symbols from OFDM sub-carriers. More...
 
class  ofdm_sync_sc_cfb
 Schmidl & Cox synchronisation for OFDM. More...
 
class  packet_header_default
 Default header formatter for digital packet transmission. More...
 
class  packet_header_ofdm
 Header utility for OFDM signals. More...
 
class  packet_headergenerator_bb
 Generates a header for a tagged, streamed packet. More...
 
class  packet_headerparser_b
 Post header metadata as a PMT. More...
 
class  packet_sink
 process received bits looking for packet sync, header, and process bits into packet More...
 
class  pfb_clock_sync_ccf
 Timing synchronizer using polyphase filterbanks. More...
 
class  pfb_clock_sync_fff
 Timing synchronizer using polyphase filterbanks. More...
 
class  pn_correlator_cc
 PN code sequential search correlator. More...
 
class  probe_density_b
 
class  probe_mpsk_snr_est_c
 A probe for computing SNR of a signal. More...
 
class  scrambler_bb
 Scramble an input stream using an LFSR. More...
 
class  simple_correlator
 inverse of simple_framer (more or less) More...
 
class  simple_framer
 add sync field, seq number and command field to payload More...
 
class  chunks_to_symbols_bc
 Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)input: stream of unsigned char; output: stream of gr_complex. More...
 
class  chunks_to_symbols_bf
 Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)input: stream of unsigned char; output: stream of float. More...
 
class  chunks_to_symbols_ic
 Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)input: stream of int; output: stream of gr_complex. More...
 
class  chunks_to_symbols_if
 Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)input: stream of int; output: stream of float. More...
 
class  chunks_to_symbols_sc
 Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)input: stream of short; output: stream of gr_complex. More...
 
class  chunks_to_symbols_sf
 Map a stream of symbol indexes (unpacked bytes or shorts) to stream of float or complex constellation points in D dimensions (D = 1 by default)input: stream of short; output: stream of float. More...
 

Enumerations

enum  trellis_metric_type_t { TRELLIS_EUCLIDEAN = 200, TRELLIS_HARD_SYMBOL, TRELLIS_HARD_BIT }
 
enum  snr_est_type_t { SNR_EST_SIMPLE = 0, SNR_EST_SKEW, SNR_EST_M2M4, SNR_EST_SVR }
 A block for computing SNR of a signal. More...
 

Functions

DIGITAL_API unsigned int update_crc32 (unsigned int crc, const unsigned char *buf, size_t len)
 update running CRC-32 More...
 
DIGITAL_API unsigned int update_crc32 (unsigned int crc, const std::string buf)
 
DIGITAL_API unsigned int crc32 (const unsigned char *buf, size_t len)
 
DIGITAL_API unsigned int crc32 (const std::string buf)
 

Variables

static const unsigned long long GRSF_SYNC = 0xacdda4e2f28c20fcULL
 
static const int GRSF_BITS_PER_BYTE = 8
 
static const int GRSF_SYNC_OVERHEAD = sizeof(GRSF_SYNC)
 
static const int GRSF_PAYLOAD_OVERHEAD = 1
 
static const int GRSF_TAIL_PAD = 1
 
static const int GRSF_OVERHEAD = GRSF_SYNC_OVERHEAD + GRSF_PAYLOAD_OVERHEAD + GRSF_TAIL_PAD
 

Enumeration Type Documentation

Enumerator
TRELLIS_EUCLIDEAN 
TRELLIS_HARD_SYMBOL 
TRELLIS_HARD_BIT 

Function Documentation

DIGITAL_API unsigned int gr::digital::crc32 ( const unsigned char *  buf,
size_t  len 
)
DIGITAL_API unsigned int gr::digital::crc32 ( const std::string  buf)
DIGITAL_API unsigned int gr::digital::update_crc32 ( unsigned int  crc,
const std::string  buf 
)

Variable Documentation

const int gr::digital::GRSF_BITS_PER_BYTE = 8
static
const int gr::digital::GRSF_OVERHEAD = GRSF_SYNC_OVERHEAD + GRSF_PAYLOAD_OVERHEAD + GRSF_TAIL_PAD
static
const int gr::digital::GRSF_PAYLOAD_OVERHEAD = 1
static
const unsigned long long gr::digital::GRSF_SYNC = 0xacdda4e2f28c20fcULL
static

Here are a couple of maximum length sequences (m-sequences) that were generated by the the "mseq" matlab/octave code downloaded from: http://www.mathworks.com/matlabcentral/fileexchange/990

31-bit m-sequence:
 0110100100001010111011000111110
 0x690AEC76 (padded on right with a zero)
63-bit m-sequence:
 101011001101110110100100111000101111001010001100001000001111110
     0xACDDA4E2F28C20FC (padded on right with a zero)
const int gr::digital::GRSF_SYNC_OVERHEAD = sizeof(GRSF_SYNC)
static
const int gr::digital::GRSF_TAIL_PAD = 1
static