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