pub struct OfdmSyncResult {
pub start_sample: usize,
pub cfo_hz: f32,
pub integer_cfo_bins: i32,
pub score: f32,
}Expand description
One packet-sync candidate.
Fields§
§start_sample: usizeSample offset of the preamble’s start.
cfo_hz: f32Fractional CFO estimate (Hz), unambiguous within ±½ the subcarrier
spacing (±fs / (2 · repeat_len)); larger offsets alias.
integer_cfo_bins: i32Integer CFO estimate, in whole subcarrier-spacing units. 0 unless
preamble.training_symbol is present and the integer search ran.
Total CFO is cfo_hz + integer_cfo_bins as f32 * subcarrier_spacing.
score: f32Normalized timing-metric score in [0, 1]; higher is a better match.
Trait Implementations§
Source§impl Clone for OfdmSyncResult
impl Clone for OfdmSyncResult
Source§fn clone(&self) -> OfdmSyncResult
fn clone(&self) -> OfdmSyncResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OfdmSyncResult
Source§impl Debug for OfdmSyncResult
impl Debug for OfdmSyncResult
Source§impl PartialEq for OfdmSyncResult
impl PartialEq for OfdmSyncResult
impl StructuralPartialEq for OfdmSyncResult
Auto Trait Implementations§
impl Freeze for OfdmSyncResult
impl RefUnwindSafe for OfdmSyncResult
impl Send for OfdmSyncResult
impl Sync for OfdmSyncResult
impl Unpin for OfdmSyncResult
impl UnsafeUnpin for OfdmSyncResult
impl UnwindSafe for OfdmSyncResult
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