SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
i3c_slave.h
Go to the documentation of this file.
1/*
2 © 2019 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_SLAVE_H
15#define SIMICS_SYSTEMC_TLM2SIMICS_I3C_SLAVE_H
16
22
23namespace simics {
24namespace systemc {
25namespace tlm2simics {
26
31 public TransactionHandler,
33 public:
34 I3cSlave() : InterfaceProvider("i3c_slave"),
36 iface::I3cSlaveExtension::createIgnoreReceiver()),
37 receiver_(iface::I3cSlaveExtension::createReceiver(this)) {}
38 virtual ~I3cSlave();
39
40 // I3cSlaveInterface
41 void start(uint8_t address) override;
42 void write(uint8_t value) override;
43 void sdr_write(types::bytes_t data) override;
44 void read() override;
45 void daa_read() override;
46 void stop() override;
47 void ibi_start() override;
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:30
Definition: i3c_slave_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_slave interface.
Definition: i3c_slave.h:32
void sdr_write(types::bytes_t data) override
iface::ReceiverInterface * receiver() override
I3cSlave()
Definition: i3c_slave.h:34
void ibi_acknowledge(types::i3c_ack_t ack) override
void write(uint8_t value) override
void start(uint8_t address) 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
Definition: bytes.h:26