SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
spi_master.h
Go to the documentation of this file.
1/*
2 © 2025 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 TLM2SIMICS_SPI_MASTER_H
15#define TLM2SIMICS_SPI_MASTER_H
16
19
20namespace simics {
21namespace systemc {
22namespace tlm2simics {
23
28 public TransactionHandler {
29 public:
30 SpiMaster() : InterfaceProvider("serial_peripheral_interface_master"),
31 TransactionHandler(this) {}
32 // TransactionHandler
34
35 private:
36 unsigned int transaction(simics::ConfObjectRef &simics_obj, // NOLINT
37 tlm::tlm_generic_payload *trans, bool inquiry);
38 tlm::tlm_response_status simics_transaction(
39 simics::ConfObjectRef &simics_obj,
40 tlm::tlm_generic_payload *trans) override;
41 unsigned int debug_transaction(simics::ConfObjectRef &simics_obj,
42 tlm::tlm_generic_payload *trans) override;
43};
44
45} // namespace tlm2simics
46} // namespace systemc
47} // namespace simics
48
49#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:30
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:27
Protocol specific transaction handler for Simics serial_peripheral_interface_master interface.
Definition: spi_master.h:28
SpiMaster()
Definition: spi_master.h:30
iface::ReceiverInterface * receiver() override
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:34
Definition: adapter.h:79