File async_dsss_receiver_private.h¶
FileList > async_dsss_receiver > async_dsss_receiver_private.h
Go to the source code of this file
A receiver's roles inside an AsyncDsssPool: pooled (idle until seeded) and search-only (the controller's one search). More...
#include "doppler/async_dsss_receiver/async_dsss_receiver_core.h"#include "doppler/correlator/correlator_core.h"#include <math.h>#include <stdbool.h>#include <stddef.h>
Public Functions¶
| Type | Name |
|---|---|
| int | dp__async_dsss_receiver_refine_decided (const dp_async_dsss_receiver_state_t * state) Whether the refine has decided: its carrier estimator is ready (and, with the fine hand-over on, the fine dwell is in), or it has given up at its block cap. The one predicate the receiver's own steps() and its period loop ask, exported for a test that stops a stream at that point (a checkpoint taken there) rather than keep a copy that drifts. No caller is promised it. |
| int | dp_async_dsss_receiver_set_pooled (dp_async_dsss_receiver_state_t * state, bool on) Make a receiver a pooled one: while it holds nothing it is idle (ASYNC_DSSS_RX_IDLE), consuming samples without searching, until a controller seeds it (docs/design/async-dsss-receiver.md §6). |
| int | dp_async_dsss_receiver_set_search_only (dp_async_dsss_receiver_state_t * state, size_t n_picks) Make a receiver a controller's search: each dwell's pick runs for ranks 0 … n_picks - 1 and the survivors are kept for take_picks(), and the receiver never seeds itself. |
| size_t | dp_async_dsss_receiver_take_picks (dp_async_dsss_receiver_state_t * state, double * chip_phase, double * doppler_hz, double * cn0_dbhz, size_t max) Take a search-only receiver's waiting picks, in the order their dwells found them (each dwell's strongest first), and clear them. |
Public Static Functions¶
| Type | Name |
|---|---|
| void | dp__async_dsss_receiver_sym_t_off (dp_async_dsss_receiver_state_t * s, int off) Silence the strobe-time probe ("<prefix>.sym.t") and stop its per-symbol work, keeping it registered: a test's control. |
Detailed Description¶
The pool's plumbing (docs/design/async-dsss-receiver.md §5, §6), kept out of async_dsss_receiver_core.h so the receiver's documented API does not carry them. They are still exported: this header sits under native/inc, so it is installed and its symbols are in cmake/public-symbols.txt, which is what lets the pool, a separate component, link to them. No caller is promised them; the pool is the one user, and it sets both at create. Both values still travel in the receiver's blob (v15) a pooled receiver restores pooled and idle, a search restores its pick count pinned by test_async_dsss_receiver_core's round trip.
Public Functions Documentation¶
function dp__async_dsss_receiver_refine_decided¶
Whether the refine has decided: its carrier estimator is ready (and, with the fine hand-over on, the fine dwell is in), or it has given up at its block cap. The one predicate the receiver's own steps() and its period loop ask, exported for a test that stops a stream at that point (a checkpoint taken there) rather than keep a copy that drifts. No caller is promised it.
Parameters:
stateMust be non-NULL, refining or not.
Returns:
1 when decided, else 0.
function dp_async_dsss_receiver_set_pooled¶
Make a receiver a pooled one: while it holds nothing it is idle (ASYNC_DSSS_RX_IDLE), consuming samples without searching, until a controller seeds it (docs/design/async-dsss-receiver.md §6).
A pool's receivers do not search for themselves: the controller's one search finds the signals and seed() hands each to an idle receiver (§5). Pooled, reset() and a release with reacquire return the receiver to idle instead of to its own search, and seed() is taken while idle as while searching. Turning it on while searching goes idle at once; turning it off while idle restarts the search. A receiver that holds a signal keeps it either way.
Parameters:
stateMust be non-NULL.onPooled or not.
Returns:
DP_OK.
function dp_async_dsss_receiver_set_search_only¶
Make a receiver a controller's search: each dwell's pick runs for ranks 0 … n_picks - 1 and the survivors are kept for take_picks(), and the receiver never seeds itself.
int dp_async_dsss_receiver_set_search_only (
dp_async_dsss_receiver_state_t * state,
size_t n_picks
)
The pool's one search (docs/design/async-dsss-receiver.md §5) is a receiver in this mode, fed the same samples as the pool's receivers. A dwell that decides inside a call runs the pick of §7.2 once per rank against the exclusions (set_exclusions(), read at the call's first sample and carried forward with it), and each surviving peak is kept with its code phase carried to the sample after the call: the phase seed() wants on a receiver fed the same call. A peak outside the seed domain is counted in refused_hits, as a normal receiver counts it. Picks accumulate, up to ASYNC_DSSS_RX_MAX_PEAKS, until taken. 0 is a normal receiver again, its waiting picks dropped.
Parameters:
stateMust be non-NULL.n_picksRanks a dwell reports, at most ASYNC_DSSS_RX_MAX_PEAKS; 0 = off.
Returns:
DP_OK, or DP_ERR_INVALID (nothing changes) past the cap.
function dp_async_dsss_receiver_take_picks¶
Take a search-only receiver's waiting picks, in the order their dwells found them (each dwell's strongest first), and clear them.
size_t dp_async_dsss_receiver_take_picks (
dp_async_dsss_receiver_state_t * state,
double * chip_phase,
double * doppler_hz,
double * cn0_dbhz,
size_t max
)
A pick waits until taken. Taken calls after the one that found it, its phase is carried to the sample after the last one fed, dilated with a carrier, as a hit is carried to its hand-off; and a signal a later dwell picks again (within the exclusions' one chip) replaces its waiting pick with the fresher estimate, so the list holds each signal once.
Parameters:
stateMust be non-NULL.chip_phaseOut: each pick's code phase at the sample after the last one fed, chips; at leastmax.doppler_hzOut: its Doppler estimate, Hz.cn0_dbhzOut: its C/N0 estimate, dB-Hz.maxCapacity of each array.
Returns:
The picks written, at most max; any past it are dropped.
Public Static Functions Documentation¶
function dp__async_dsss_receiver_sym_t_off¶
Silence the strobe-time probe ("<prefix>.sym.t") and stop its per-symbol work, keeping it registered: a test's control.
static inline void dp__async_dsss_receiver_sym_t_off (
dp_async_dsss_receiver_state_t * s,
int off
)
With off set, the receiver runs the chain exactly as with no attachment of this probe dp_mpsk_receiver_steps(), not the at form and emits no ".sym.t" record, while every other probe keeps its id. So a test compares the other records with the probe live and silent, record for record (test_async_dsss_receiver_core.c). Never set by a caller.
Parameters:
sMust be non-NULL.off1 to silence, 0 to restore.
The documentation for this class was generated from the following file native/inc/doppler/async_dsss_receiver/async_dsss_receiver_private.h