Struct rust_hdl_widgets::i2c::i2c_target::I2CTarget
source · pub struct I2CTarget {
pub i2c: I2CBusDriver,
pub clock: Signal<In, Clock>,
pub from_bus: Signal<Out, Bits<8>>,
pub bus_write: Signal<Out, Bit>,
pub active: Signal<In, Bit>,
pub stop: Signal<Out, Bit>,
pub to_bus: Signal<In, Bits<8>>,
pub write_enable: Signal<In, Bit>,
pub ack: Signal<Out, Bit>,
pub nack: Signal<Out, Bit>,
pub write_ok: Signal<Out, Bit>,
/* private fields */
}
Fields§
§i2c: I2CBusDriver
§clock: Signal<In, Clock>
§from_bus: Signal<Out, Bits<8>>
§bus_write: Signal<Out, Bit>
§active: Signal<In, Bit>
§stop: Signal<Out, Bit>
§to_bus: Signal<In, Bits<8>>
§write_enable: Signal<In, Bit>
§ack: Signal<Out, Bit>
§nack: Signal<Out, Bit>
§write_ok: Signal<Out, Bit>
Trait Implementations§
source§impl Block for I2CTarget
impl Block for I2CTarget
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 RefUnwindSafe for I2CTarget
impl Send for I2CTarget
impl Sync for I2CTarget
impl Unpin for I2CTarget
impl UnwindSafe for I2CTarget
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