pub struct ChannelParams {
pub name: String,
pub stored_bits: u8,
pub range: u32,
pub log_decades: (f32, f32),
pub adc_bits: Option<u8>,
pub signed: bool,
}Expand description
Per-channel parameters derived from FCS keywords. Carried alongside every encode/decode call rather than baked into codec instances so that the same codec object can be reused across channels.
Fields§
§name: String$PnN — short name (used for logs/diagnostics, not codec choice).
stored_bits: u8$PnB — bits per parameter as stored on disk (not necessarily ADC bits).
range: u32$PnR — parameter range (max value + 1, per FCS spec).
log_decades: (f32, f32)$PnE — (decades, offset). (0.0, 0.0) denotes linear scaling.
adc_bits: Option<u8>True ADC bit depth, if known. Used by Mode B; falls back to ceil(log2(range)).
signed: boolWhether the channel may carry negative values (post-compensation/unmixing).
Implementations§
Trait Implementations§
Source§impl Clone for ChannelParams
impl Clone for ChannelParams
Source§fn clone(&self) -> ChannelParams
fn clone(&self) -> ChannelParams
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 moreAuto Trait Implementations§
impl Freeze for ChannelParams
impl RefUnwindSafe for ChannelParams
impl Send for ChannelParams
impl Sync for ChannelParams
impl Unpin for ChannelParams
impl UnsafeUnpin for ChannelParams
impl UnwindSafe for ChannelParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more