pub struct SwModel {
pub vt: f64,
pub vh: f64,
pub ron: Option<f64>,
pub roff: Option<f64>,
}Expand description
.model … sw(…) parameters, 3f5 names (sw.c model table) and
the defaults of SWsetup.
Fields§
§vt: f64VT: threshold voltage, default 0.
vh: f64VH: hysteresis voltage, default 0. Kept signed (ngspice; the
3f5 stores |VH|).
ron: Option<f64>RON: closed resistance, default 1 Ω (SW_ON_CONDUCTANCE).
roff: Option<f64>ROFF: open resistance, default 1/GMIN
(SW_OFF_CONDUCTANCE is CKTgmin).
Trait Implementations§
Auto Trait Implementations§
impl Forget for SwModel
impl Freeze for SwModel
impl Move for SwModel
impl RefUnwindSafe for SwModel
impl Send for SwModel
impl Sync for SwModel
impl Unpin for SwModel
impl UnsafeUnpin for SwModel
impl UnwindSafe for SwModel
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