pub struct PulseWidthModulator<const N: usize> {
pub enable: Signal<In, Bit>,
pub threshold: Signal<In, Bits<N>>,
pub clock: Signal<In, Clock>,
pub active: Signal<Out, Bit>,
/* private fields */
}
Fields
enable: Signal<In, Bit>
threshold: Signal<In, Bits<N>>
clock: Signal<In, Clock>
active: Signal<Out, Bit>
Trait Implementations
sourceimpl<const N: usize> Block for PulseWidthModulator<N>
impl<const N: usize> Block for PulseWidthModulator<N>
sourcefn connect_all(&mut self)
fn connect_all(&mut self)
Connects the internal signals of the circuit - used to initialize the circuit
sourcefn update_all(&mut self)
fn update_all(&mut self)
Propogate changes from inputs to outputs within the circuit
sourcefn has_changed(&self) -> bool
fn has_changed(&self) -> bool
Returns true
if anything in the circuit has changed (outputs or internal state)
sourceimpl<const N: usize> Default for PulseWidthModulator<N>
impl<const N: usize> Default for PulseWidthModulator<N>
Auto Trait Implementations
impl<const N: usize> RefUnwindSafe for PulseWidthModulator<N>
impl<const N: usize> Send for PulseWidthModulator<N>
impl<const N: usize> Sync for PulseWidthModulator<N>
impl<const N: usize> Unpin for PulseWidthModulator<N>
impl<const N: usize> UnwindSafe for PulseWidthModulator<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more