Struct 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¶
one symbol in input samples
variable bank_sps¶
one symbol in the terminal stage's inputs
variable beta¶
the pulse's roll-off, for r(v) at its cut
variable c¶
the converter's ml_c
variable center¶
the bank's content behind its newest tap, less held
variable cg¶
the stages' response's centroid, input samples
variable dv¶
r's step, input samples
variable gen¶
the converter's reader_gen at open; 0 when closed
variable held¶
bank samples get_group_delay() has counted
variable margin¶
bank samples the optimum arms' symbol sits deeper
variable nn¶
the neighbors a data eye counts each side
variable nr¶
samples in r
variable nrb¶
lags in rb
variable p¶
the stages ahead of the bank; owns p.g
variable r¶
the root-raised cosine's pulse through the stages, r(v0 + i dv); owned; NULL on the rectangle
variable rb¶
the noise ahead of the bank, nrb lags; owned; NULL on a reader opened without it
variable rc¶
the converter; NULL when closed
variable rs¶
the terminal stage, in the converter
variable span¶
the pulse's one-sided support, symbols
variable 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