Struct rust_hdl::prelude::PulseWidthModulator
source · pub struct PulseWidthModulator<const N: usize> {
pub enable: Signal<In, bool>,
pub threshold: Signal<In, Bits<N>>,
pub clock: Signal<In, Clock>,
pub active: Signal<Out, bool>,
/* private fields */
}Fields§
§enable: Signal<In, bool>§threshold: Signal<In, Bits<N>>§clock: Signal<In, Clock>§active: Signal<Out, bool>Trait Implementations§
source§impl<const N: usize> Block for PulseWidthModulator<N>
impl<const N: usize> Block for PulseWidthModulator<N>
source§fn connect_all(&mut self)
fn connect_all(&mut self)
Connects the internal signals of the circuit - used to initialize the circuit
source§fn update_all(&mut self)
fn update_all(&mut self)
Propogate changes from inputs to outputs within the circuit
source§fn has_changed(&self) -> bool
fn has_changed(&self) -> bool
Returns
true if anything in the circuit has changed (outputs or internal state)source§impl<const N: usize> Default for PulseWidthModulator<N>
impl<const N: usize> Default for PulseWidthModulator<N>
source§fn default() -> PulseWidthModulator<N>
fn default() -> PulseWidthModulator<N>
Returns the “default value” for a type. Read more