pub struct Vrt49Context {
pub gain_db: f32,
pub temperature_c: f32,
pub rf_ref_freq_hz: f64,
pub timestamp_int_sec: u32,
pub timestamp_frac_ps: u64,
pub bandwidth_hz: f32,
pub sample_rate_sps: f64,
}Expand description
Hardware context from a VITA 49.2 (VRT) context packet.
Populated by the integration layer from VRT context extension packets. The DSFB engine reads these fields but never writes VRT packets.
§VRT Field Mapping
| VRT Field | DSFB Usage |
|---|---|
| Reference Level | Maps to admissibility envelope scaling |
| Gain | Distinguishes AGC drift from signal-level drift |
| Temperature | Correlates thermal drift with PA thermal motif |
| RF Reference Freq | Detects LO offset / frequency drift |
| Timestamp (picosec) | Sub-nanosecond event timestamping |
| Bandwidth | Contextualizes spectral mask width |
Fields§
§gain_db: f32Receiver gain in dB (from VRT Gain field, CIF 0 word).
temperature_c: f32Device temperature in °C (from VRT Temperature field).
f32::NAN if not available.
rf_ref_freq_hz: f64RF reference frequency in Hz (from VRT RF Reference Frequency field).
timestamp_int_sec: u32Integer-seconds timestamp (from VRT Integer-Seconds Timestamp).
timestamp_frac_ps: u64Fractional-seconds timestamp in picoseconds (from VRT Fractional Timestamp).
bandwidth_hz: f32Bandwidth in Hz (from VRT Bandwidth field).
sample_rate_sps: f64Sample rate in samples/sec (from VRT Sample Rate field).
Implementations§
Source§impl Vrt49Context
impl Vrt49Context
Sourcepub fn has_temperature(&self) -> bool
pub fn has_temperature(&self) -> bool
Returns true if a valid temperature reading is available.
Sourcepub fn has_rf_freq(&self) -> bool
pub fn has_rf_freq(&self) -> bool
Returns true if a valid RF reference frequency is set.
Trait Implementations§
Source§impl Clone for Vrt49Context
impl Clone for Vrt49Context
Source§fn clone(&self) -> Vrt49Context
fn clone(&self) -> Vrt49Context
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 Vrt49Context
impl Debug for Vrt49Context
Source§impl Default for Vrt49Context
impl Default for Vrt49Context
Source§impl PartialEq for Vrt49Context
impl PartialEq for Vrt49Context
impl Copy for Vrt49Context
impl StructuralPartialEq for Vrt49Context
Auto Trait Implementations§
impl Freeze for Vrt49Context
impl RefUnwindSafe for Vrt49Context
impl Send for Vrt49Context
impl Sync for Vrt49Context
impl Unpin for Vrt49Context
impl UnsafeUnpin for Vrt49Context
impl UnwindSafe for Vrt49Context
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