Struct rust_hdl_widgets::i2c::i2c_test_target::I2CTestBus
source · pub struct I2CTestBus<const N: usize> {
pub endpoints: [I2CBusReceiver; N],
pub sda_state: Signal<Local, Bit>,
pub scl_state: Signal<Local, Bit>,
}
Fields§
§endpoints: [I2CBusReceiver; N]
§sda_state: Signal<Local, Bit>
§scl_state: Signal<Local, Bit>
Trait Implementations§
source§impl<const N: usize> Block for I2CTestBus<N>
impl<const N: usize> Block for I2CTestBus<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)