pub struct I2CTestBus<const N: usize> {
pub endpoints: [I2CBusReceiver; N],
pub sda_state: Signal<Local, bool>,
pub scl_state: Signal<Local, bool>,
}
Fields§
§endpoints: [I2CBusReceiver; N]
§sda_state: Signal<Local, bool>
§scl_state: Signal<Local, bool>
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)Source§impl<const N: usize> Default for I2CTestBus<N>
impl<const N: usize> Default for I2CTestBus<N>
Source§fn default() -> I2CTestBus<N>
fn default() -> I2CTestBus<N>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<const N: usize> Freeze for I2CTestBus<N>
impl<const N: usize> RefUnwindSafe for I2CTestBus<N>
impl<const N: usize> Send for I2CTestBus<N>
impl<const N: usize> Sync for I2CTestBus<N>
impl<const N: usize> Unpin for I2CTestBus<N>
impl<const N: usize> UnwindSafe for I2CTestBus<N>
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