pub struct DualIir {
pub(crate) afe: [Leaf<Gain>; 2],
pub(crate) iir_ch: [[Leaf<Biquad<f32>>; 1]; 2],
pub(crate) allow_hold: Leaf<bool>,
pub(crate) force_hold: Leaf<bool>,
pub(crate) telemetry_period: Leaf<u16>,
pub(crate) stream: Leaf<StreamTarget>,
pub(crate) source: [BasicConfig; 2],
}
Fields§
§afe: [Leaf<Gain>; 2]
Configure the Analog Front End (AFE) gain.
§Path
afe/<n>
<n>
specifies which channel to configure.<n>
:= [0, 1]
§Value
Any of the variants of Gain enclosed in double quotes.
iir_ch: [[Leaf<Biquad<f32>>; 1]; 2]
Configure the IIR filter parameters.
§Path
iir_ch/<n>/<m>
<n>
specifies which channel to configure.<n>
:= [0, 1]<m>
specifies which cascade to configure.<m>
:= [0, 1], depending on IIR_CASCADE_LENGTH
See iir::Biquad
allow_hold: Leaf<bool>
§force_hold: Leaf<bool>
Specified true if “hold” should be forced regardless of DI1 state and hold allowance.
§Path
force_hold
§Value
“true” or “false”
telemetry_period: Leaf<u16>
Specifies the telemetry output period in seconds.
§Path
telemetry_period
§Value
Any non-zero value less than 65536.
stream: Leaf<StreamTarget>
§source: [BasicConfig; 2]
Specifies the config for signal generators to add on to DAC0/DAC1 outputs.
§Path
source/<n>
<n>
specifies which channel to configure.<n>
:= [0, 1]
§Value
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DualIir
impl<'de> Deserialize<'de> for DualIir
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl TreeAny for DualIir
impl TreeAny for DualIir
source§fn ref_any_by_key<K>(&self, keys: K) -> Result<&dyn Any, Traversal>where
K: Keys,
fn ref_any_by_key<K>(&self, keys: K) -> Result<&dyn Any, Traversal>where
K: Keys,
Obtain a reference to a
dyn Any
trait object for a leaf node.source§fn mut_any_by_key<K>(&mut self, keys: K) -> Result<&mut dyn Any, Traversal>where
K: Keys,
fn mut_any_by_key<K>(&mut self, keys: K) -> Result<&mut dyn Any, Traversal>where
K: Keys,
Obtain a mutable reference to a
dyn Any
trait object for a leaf node.source§impl<'de> TreeDeserialize<'de> for DualIir
impl<'de> TreeDeserialize<'de> for DualIir
source§fn deserialize_by_key<K, D>(
&mut self,
keys: K,
de: D,
) -> Result<usize, Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
fn deserialize_by_key<K, D>(
&mut self,
keys: K,
de: D,
) -> Result<usize, Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
Deserialize a leaf node by its keys. Read more
source§impl TreeKey for DualIir
impl TreeKey for DualIir
source§impl TreeSerialize for DualIir
impl TreeSerialize for DualIir
source§fn serialize_by_key<K, S>(
&self,
keys: K,
ser: S,
) -> Result<usize, Error<S::Error>>where
K: Keys,
S: Serializer,
fn serialize_by_key<K, S>(
&self,
keys: K,
ser: S,
) -> Result<usize, Error<S::Error>>where
K: Keys,
S: Serializer,
Serialize a node by keys. Read more
Auto Trait Implementations§
impl Freeze for DualIir
impl RefUnwindSafe for DualIir
impl Send for DualIir
impl Sync for DualIir
impl Unpin for DualIir
impl UnwindSafe for DualIir
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)