Skip to content

Struct dp_rc_reader_t

ClassList > dp_rc_reader_t

What the output model and the eyes read from a matched converter, built once for a group of reads (#3514). More...

  • #include <RateConverter_private.h>

Public Attributes

Type Name
double S
double bank_sps
double beta
const double * c
double center
double cg
double dv
uint64_t gen
double held
double margin
int nn
size_t nr
size_t nrb
dp_rc_pre_t p
double * r
double * rb
const dp_RateConverter_state_t * rc
const resamp_state_t * rs
double span
double v0

Detailed Description

dp_RateConverter_output_model(), dp_RateConverter_get_data_eye() and dp_RateConverter_get_lone_eye() each open one of these, read once and close it. A caller that reads the model many times from one converter opens one with dp_rc_reader_open(), reads it with dp_rc_reader_output_model(), and closes it with dp_rc_reader_close(): the same arithmetic on the same values, so the same bytes, without the per-call build of the stages' response, the root-raised cosine's pulse table and the noise table.

Current. A reader holds values derived from its converter and pointers into it (the terminal stage's bank, derivative bank and ml_c). It is current while the converter's reader_gen equals the value it was opened at. The converter changes that counter whenever anything a reader holds may have changed: a set_rate() that rebuilds the plan, and a set_state() that succeeds. A read of a reader that is not current returns DP_ERR_INVALID before it reads any pointer it holds; reopen it. dp_RateConverter_reset(), execute, the CIC word's setters and the AGC's change nothing a reader holds and leave it current.

Lifetime. Close a reader before its converter is destroyed: a reader cannot tell that its converter is gone, and reading one after is reading freed memory. A reader is never copied, moved or assigned once open: it owns its tables, and a copy would free them twice. dp_rc_reader_open() takes a zeroed or closed reader; one that is open is refused.

Threads. An open reader is not changed by a read, and each read allocates its own scratch, so several threads may read one reader at once while no thread changes the converter. Open and close are one thread's.

Fields are the library's; a caller reads none of them.

Public Attributes Documentation

variable S

double dp_rc_reader_t::S;

one symbol in input samples


variable bank_sps

double dp_rc_reader_t::bank_sps;

one symbol in the terminal stage's inputs


variable beta

double dp_rc_reader_t::beta;

the pulse's roll-off, for r(v) at its cut


variable c

const double* dp_rc_reader_t::c;

the converter's ml_c


variable center

double dp_rc_reader_t::center;

the bank's content behind its newest tap, less held


variable cg

double dp_rc_reader_t::cg;

the stages' response's centroid, input samples


variable dv

double dp_rc_reader_t::dv;

r's step, input samples


variable gen

uint64_t dp_rc_reader_t::gen;

the converter's reader_gen at open; 0 when closed


variable held

double dp_rc_reader_t::held;

bank samples get_group_delay() has counted


variable margin

double dp_rc_reader_t::margin;

bank samples the optimum arms' symbol sits deeper


variable nn

int dp_rc_reader_t::nn;

the neighbors a data eye counts each side


variable nr

size_t dp_rc_reader_t::nr;

samples in r


variable nrb

size_t dp_rc_reader_t::nrb;

lags in rb


variable p

dp_rc_pre_t dp_rc_reader_t::p;

the stages ahead of the bank; owns p.g


variable r

double* dp_rc_reader_t::r;

the root-raised cosine's pulse through the stages, r(v0 + i dv); owned; NULL on the rectangle


variable rb

double* dp_rc_reader_t::rb;

the noise ahead of the bank, nrb lags; owned; NULL on a reader opened without it


variable rc

const dp_RateConverter_state_t* dp_rc_reader_t::rc;

the converter; NULL when closed


variable rs

const resamp_state_t* dp_rc_reader_t::rs;

the terminal stage, in the converter


variable span

double dp_rc_reader_t::span;

the pulse's one-sided support, symbols


variable v0

double dp_rc_reader_t::v0;

v of r's first sample, input samples



The documentation for this class was generated from the following file native/inc/doppler/RateConverter/RateConverter_private.h