pub struct SPIMaster<const N: usize> {
pub clock: Signal<In, Clock>,
pub bits_outbound: Signal<In, Bits<16>>,
pub data_outbound: Signal<In, Bits<N>>,
pub data_inbound: Signal<Out, Bits<N>>,
pub start_send: Signal<In, Bit>,
pub transfer_done: Signal<Out, Bit>,
pub continued_transaction: Signal<In, Bit>,
pub busy: Signal<Out, Bit>,
pub wires: SPIWiresMaster,
/* private fields */
}Fields§
§clock: Signal<In, Clock>§bits_outbound: Signal<In, Bits<16>>§data_outbound: Signal<In, Bits<N>>§data_inbound: Signal<Out, Bits<N>>§start_send: Signal<In, Bit>§transfer_done: Signal<Out, Bit>§continued_transaction: Signal<In, Bit>§busy: Signal<Out, Bit>§wires: SPIWiresMasterImplementations§
Trait Implementations§
source§impl<const N: usize> Block for SPIMaster<N>
impl<const N: usize> Block for SPIMaster<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)