16#ifndef SIMICS_SYSTEMC_SIMICS2TLM_I2C_SLAVE_V2_GASKET_ADAPTER_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_I2C_SLAVE_V2_GASKET_ADAPTER_H
41 : i2cslavev2_(i2cslavev2), simulation_(simulation) {
43 void start(uint8_t address)
override {
45 i2cslavev2_->start(address);
51 void write(uint8_t value)
override {
53 i2cslavev2_->write(value);
61 return i2cslavev2_->addresses();
68 I2cSlaveV2Interface *i2cslavev2_;
Utility class that handles the context switching, using RAII methodology.
Definition: context.h:31
Definition: i2c_slave_v2_interface.h:26
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 I2cSlaveV2 gasket.
Definition: i2c_slave_v2_gasket_adapter.h:37
void start(uint8_t address) override
Definition: i2c_slave_v2_gasket_adapter.h:43
simics2tlm::GasketOwner * gasket_owner() const override
Definition: i2c_slave_v2_gasket_adapter.h:63
void read() override
Definition: i2c_slave_v2_gasket_adapter.h:47
void stop() override
Definition: i2c_slave_v2_gasket_adapter.h:55
std::vector< uint8_t > addresses() override
Definition: i2c_slave_v2_gasket_adapter.h:59
void write(uint8_t value) override
Definition: i2c_slave_v2_gasket_adapter.h:51
I2cSlaveV2GasketAdapter(I2cSlaveV2Interface *i2cslavev2, iface::SimulationInterface *simulation)
Definition: i2c_slave_v2_gasket_adapter.h:39
Definition: pci_bus_interface.h:24