SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
i3c_master.h
Go to the documentation of this file.
1/*
2 © 2021 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_TLM2SIMICS_I3C_MASTER_H
15#define SIMICS_SYSTEMC_TLM2SIMICS_I3C_MASTER_H
16
22
23namespace simics {
24namespace systemc {
25namespace tlm2simics {
26
31 public TransactionHandler,
33 public:
34 I3cMaster() : InterfaceProvider("i3c_master"),
36 iface::I3cMasterExtension::createIgnoreReceiver()),
37 receiver_(iface::I3cMasterExtension::createReceiver(this)) {}
38 virtual ~I3cMaster();
39
40 // I3cMasterInterface
41 void acknowledge(types::i3c_ack_t ack) override;
42 void read_response(uint8_t value, bool more) override;
43 void daa_response(uint64_t id, uint8_t bcr, uint8_t dcr) override;
44 void ibi_request() override;
45 void ibi_address(uint8_t address) override;
46
47 // TransactionHandler
49
50 private:
51 tlm::tlm_response_status simics_transaction(
52 ConfObjectRef &simics_obj,
53 tlm::tlm_generic_payload *trans) override;
54 iface::ReceiverInterface *receiver_;
55};
56
57} // namespace tlm2simics
58} // namespace systemc
59} // namespace simics
60
61#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:30
Simics i3c_master interface.
Definition: i3c_master_interface.h:25
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:27
Protocol specific transaction handler for Simics i3c_master interface.
Definition: i3c_master.h:32
I3cMaster()
Definition: i3c_master.h:34
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:34
i3c_ack_t
Definition: i3c_ack.h:20
Definition: adapter.h:79