SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
i2c_slave_v2.h
Go to the documentation of this file.
1/*
2 © 2015 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_SIMICS2TLM_I2C_SLAVE_V2_H
15#define SIMICS_SYSTEMC_SIMICS2TLM_I2C_SLAVE_V2_H
16
21
22#include <stdint.h>
23#include <vector>
24
25namespace simics {
26namespace systemc {
27namespace simics2tlm {
28
34 public GasketOwner {
35 public:
36 void gasketUpdated() override;
37
38 void start(uint8_t address) override;
39 void read() override;
40 void write(uint8_t data) override;
41 void stop() override;
42 std::vector<uint8_t> addresses() override;
43
44 private:
45 ExtensionSender sender_;
47};
48
49} // namespace simics2tlm
50} // namespace systemc
51} // namespace simics
52
53#endif
Definition: i2c_slave_v2_extension.h:28
Definition: i2c_slave_v2_interface.h:24
Specialized extension sender for simics2tlm gaskets.
Definition: extension_sender.h:29
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:30
Class that implements the Simics i2c_slave_v2 interface and translates it into a TLM transaction.
Definition: i2c_slave_v2.h:34
void start(uint8_t address) override
void write(uint8_t data) override
std::vector< uint8_t > addresses() override
Definition: adapter.h:79