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)