pub struct MuxSlaves<const N: usize, const A: usize> {
pub from_master: SPIWiresSlave,
pub to_slaves: [SPIWiresMaster; N],
pub sel: Signal<In, Bits<A>>,
}
Fields§
§from_master: SPIWiresSlave
§to_slaves: [SPIWiresMaster; N]
§sel: Signal<In, Bits<A>>
Trait Implementations§
Source§impl<const N: usize, const A: usize> Block for MuxSlaves<N, A>
impl<const N: usize, const A: usize> Block for MuxSlaves<N, A>
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)Auto Trait Implementations§
impl<const N: usize, const A: usize> Freeze for MuxSlaves<N, A>
impl<const N: usize, const A: usize> RefUnwindSafe for MuxSlaves<N, A>
impl<const N: usize, const A: usize> Send for MuxSlaves<N, A>
impl<const N: usize, const A: usize> Sync for MuxSlaves<N, A>
impl<const N: usize, const A: usize> Unpin for MuxSlaves<N, A>
impl<const N: usize, const A: usize> UnwindSafe for MuxSlaves<N, A>
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