pub struct PlatformContext {
pub snr_db: f32,
pub waveform_state: WaveformState,
pub post_transition_guard: u16,
}Expand description
Complete platform context passed to the engine on each observe() call.
This is the read-only context channel described in paper §XIV-C. It is populated by the integration layer (e.g., the GNU Radio sink block) and consumed by the engine. DSFB does not write to this struct.
Fields§
§snr_db: f32Current SNR estimate in dB. Use f32::NAN if unknown.
waveform_state: WaveformStateCurrent waveform state (transition suppression context).
post_transition_guard: u16Post-transition guard duration (observations). Default: 5.
Implementations§
Source§impl PlatformContext
impl PlatformContext
Sourcepub const fn operational() -> Self
pub const fn operational() -> Self
Create a nominal operational context (no suppression, SNR = +20 dB).
Sourcepub const fn with_snr(snr_db: f32) -> Self
pub const fn with_snr(snr_db: f32) -> Self
Create a context with specified SNR and operational state.
Sourcepub const fn transition() -> Self
pub const fn transition() -> Self
Create a transition-suppressed context.
Trait Implementations§
Source§impl Clone for PlatformContext
impl Clone for PlatformContext
Source§fn clone(&self) -> PlatformContext
fn clone(&self) -> PlatformContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlatformContext
impl Debug for PlatformContext
Source§impl Default for PlatformContext
impl Default for PlatformContext
impl Copy for PlatformContext
Auto Trait Implementations§
impl Freeze for PlatformContext
impl RefUnwindSafe for PlatformContext
impl Send for PlatformContext
impl Sync for PlatformContext
impl Unpin for PlatformContext
impl UnsafeUnpin for PlatformContext
impl UnwindSafe for PlatformContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more