16#ifndef SIMICS_SYSTEMC_SIMICS2TLM_I3C_SLAVE_GASKET_ADAPTER_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_I3C_SLAVE_GASKET_ADAPTER_H
38 : i3cslave_(i3cslave), simulation_(simulation) {
41 void start(uint8_t address)
override {
43 i3cslave_->start(address);
45 void write(uint8_t value)
override {
47 i3cslave_->write(value);
51 i3cslave_->sdr_write(data);
59 i3cslave_->daa_read();
67 i3cslave_->ibi_start();
71 i3cslave_->ibi_acknowledge(ack);
79 I3cSlaveInterface *i3cslave_;
Utility class that handles the context switching, using RAII methodology.
Definition: context.h:31
Definition: i3c_slave_interface.h:27
Interface to the SystemC simulation.
Definition: simulation_interface.h:27
Definition: gasket_adapter.h:45
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:32
Adapter for I3cSlave gasket.
Definition: i3c_slave_gasket_adapter.h:34
void write(uint8_t value) override
Definition: i3c_slave_gasket_adapter.h:45
void sdr_write(types::bytes_t data) override
Definition: i3c_slave_gasket_adapter.h:49
void read() override
Definition: i3c_slave_gasket_adapter.h:53
void daa_read() override
Definition: i3c_slave_gasket_adapter.h:57
void start(uint8_t address) override
Definition: i3c_slave_gasket_adapter.h:41
void ibi_acknowledge(types::i3c_ack_t ack) override
Definition: i3c_slave_gasket_adapter.h:69
I3cSlaveGasketAdapter(I3cSlaveInterface *i3cslave, iface::SimulationInterface *simulation)
Definition: i3c_slave_gasket_adapter.h:36
simics2tlm::GasketOwner * gasket_owner() const override
Definition: i3c_slave_gasket_adapter.h:74
void ibi_start() override
Definition: i3c_slave_gasket_adapter.h:65
void stop() override
Definition: i3c_slave_gasket_adapter.h:61
i3c_ack_t
Definition: i3c_ack.h:22
Definition: pci_bus_interface.h:24