pub struct SerializerArmOutcome {
pub left_shift_bits: u8,
pub adjacent_jumps: u32,
pub low_byte_stuck_pct: u8,
pub signal_bin_permille: u16,
pub accepted: bool,
}Expand description
Result of detect_arm_phase: the four R3.3/R4 discriminators plus the
bit-aligned (N=0) accept gate.
Fields§
§left_shift_bits: u8Left-shift in bits (R4): trailing-zero count of the OR of all sample bit
patterns. 0 = LSB-aligned. Gain-independent.
adjacent_jumps: u32Count of adjacent samples with |Δ| > 0x4000 (wrap / discontinuity).
low_byte_stuck_pct: u8Percent of samples whose low byte is 0x00 or 0xff (byte-stuck).
signal_bin_permille: u16Signal-bin energy fraction ×1000 (Goertzel tone power / total power, real-signal normalised so a pure tone → ≈1000).
accepted: booltrue iff the capture passes the bit-aligned (N=0) accept gate:
left_shift_bits == 0 && adjacent_jumps == 0 && low_byte_stuck_pct < 5 && signal_bin_permille > 800 (INV-AUDIO-01-4 observable form + R4 LSB).
Trait Implementations§
Source§impl Clone for SerializerArmOutcome
impl Clone for SerializerArmOutcome
Source§fn clone(&self) -> SerializerArmOutcome
fn clone(&self) -> SerializerArmOutcome
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 SerializerArmOutcome
Source§impl Debug for SerializerArmOutcome
impl Debug for SerializerArmOutcome
Source§impl Default for SerializerArmOutcome
impl Default for SerializerArmOutcome
Source§fn default() -> SerializerArmOutcome
fn default() -> SerializerArmOutcome
Returns the “default value” for a type. Read more
impl Eq for SerializerArmOutcome
Source§impl PartialEq for SerializerArmOutcome
impl PartialEq for SerializerArmOutcome
Source§fn eq(&self, other: &SerializerArmOutcome) -> bool
fn eq(&self, other: &SerializerArmOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SerializerArmOutcome
Auto Trait Implementations§
impl Freeze for SerializerArmOutcome
impl RefUnwindSafe for SerializerArmOutcome
impl Send for SerializerArmOutcome
impl Sync for SerializerArmOutcome
impl Unpin for SerializerArmOutcome
impl UnsafeUnpin for SerializerArmOutcome
impl UnwindSafe for SerializerArmOutcome
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