SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
Loading...
Searching...
No Matches
i3c_master.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2021 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_TLM2SIMICS_I3C_MASTER_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_I3C_MASTER_H
18
24
25namespace simics {
26namespace systemc {
27namespace tlm2simics {
28
33 public TransactionHandler,
35 public:
36 I3cMaster() : InterfaceProvider("i3c_master"),
38 iface::I3cMasterExtension::createIgnoreReceiver()),
39 receiver_(iface::I3cMasterExtension::createReceiver(this)) {}
40 virtual ~I3cMaster();
41
42 // I3cMasterInterface
43 void acknowledge(types::i3c_ack_t ack) override;
44 void read_response(uint8_t value, bool more) override;
45 void daa_response(uint64_t id, uint8_t bcr, uint8_t dcr) override;
46 void ibi_request() override;
47 void ibi_address(uint8_t address) override;
48
49 // TransactionHandler
51
52 private:
53 tlm::tlm_response_status simics_transaction(
54 ConfObjectRef &simics_obj,
55 tlm::tlm_generic_payload *trans) override;
56 iface::ReceiverInterface *receiver_;
57};
58
59} // namespace tlm2simics
60} // namespace systemc
61} // namespace simics
62
63#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Simics i3c_master interface.
Definition: i3c_master_interface.h:27
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Protocol specific transaction handler for Simics i3c_master interface.
Definition: i3c_master.h:34
I3cMaster()
Definition: i3c_master.h:36
void acknowledge(types::i3c_ack_t ack) override
iface::ReceiverInterface * receiver() override
void ibi_address(uint8_t address) override
void daa_response(uint64_t id, uint8_t bcr, uint8_t dcr) override
void read_response(uint8_t value, bool more) override
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:36
i3c_ack_t
Definition: i3c_ack.h:22
Definition: pci_bus_interface.h:24