Struct rust_hdl_widgets::i2c::i2c_controller::I2CController
source · pub struct I2CController {
pub i2c: I2CBusDriver,
pub clock: Signal<In, Clock>,
pub cmd: Signal<In, I2CControllerCmd>,
pub run: Signal<In, Bit>,
pub busy: Signal<Out, Bit>,
pub error: Signal<Out, Bit>,
pub write_data_in: Signal<In, Bits<8>>,
pub read_data_out: Signal<Out, Bits<8>>,
pub read_valid: Signal<Out, Bit>,
pub ack: Signal<Out, Bit>,
pub nack: Signal<Out, Bit>,
/* private fields */
}
Fields§
§i2c: I2CBusDriver
§clock: Signal<In, Clock>
§cmd: Signal<In, I2CControllerCmd>
§run: Signal<In, Bit>
§busy: Signal<Out, Bit>
§error: Signal<Out, Bit>
§write_data_in: Signal<In, Bits<8>>
§read_data_out: Signal<Out, Bits<8>>
§read_valid: Signal<Out, Bit>
§ack: Signal<Out, Bit>
§nack: Signal<Out, Bit>
Implementations§
Trait Implementations§
source§impl Block for I2CController
impl Block for I2CController
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)