Struct FeedbackConfig
pub struct FeedbackConfig {
pub pot_comp_id: String,
pub other_leg_r: f64,
pub fixed_series_r: f64,
pub parallel_r: Option<f64>,
pub pot_is_feedback: bool,
pub is_inverting: bool,
}Expand description
Configuration for a feedback pot in an op-amp gain stage.
Stores topology info so the op-amp can recompute its gain from the pot’s current resistance, without relying on external side-effect systems.
DEPRECATED: Only used in test code. The compiler pipeline uses
WdfStage::notify_pot_changed() + incremental recompute instead.
Will be removed once test helpers are updated.
Fields§
§pot_comp_id: StringComponent ID of the pot controlling gain.
other_leg_r: f64Resistance of the other leg (Ri when pot is Rf, Rf when pot is Ri).
fixed_series_r: f64Fixed resistance in series with the pot.
parallel_r: Option<f64>Fixed resistance in parallel across (pot + series R). None if no parallel R.
pot_is_feedback: boolTrue = pot is in the feedback (Rf) leg; false = pot is in the input (Ri) leg.
is_inverting: boolTrue = inverting topology; false = non-inverting.
Trait Implementations§
§impl Clone for FeedbackConfig
impl Clone for FeedbackConfig
§fn clone(&self) -> FeedbackConfig
fn clone(&self) -> FeedbackConfig
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 FeedbackConfig
impl RefUnwindSafe for FeedbackConfig
impl Send for FeedbackConfig
impl Sync for FeedbackConfig
impl Unpin for FeedbackConfig
impl UnsafeUnpin for FeedbackConfig
impl UnwindSafe for FeedbackConfig
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