SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
spi_slave.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2019 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 TLM2SIMICS_SPI_SLAVE_H
17#define TLM2SIMICS_SPI_SLAVE_H
18
21
22namespace simics {
23namespace systemc {
24namespace tlm2simics {
25
30 public TransactionHandler {
31 public:
32 SpiSlave() : InterfaceProvider("serial_peripheral_interface_slave"),
33 TransactionHandler(this) {}
34 // TransactionHandler
36
37 private:
38 unsigned int transaction(simics::ConfObjectRef &simics_obj, // NOLINT
39 tlm::tlm_generic_payload *trans, bool inquiry);
40 tlm::tlm_response_status simics_transaction(
41 simics::ConfObjectRef &simics_obj,
42 tlm::tlm_generic_payload *trans) override;
43 unsigned int debug_transaction(simics::ConfObjectRef &simics_obj,
44 tlm::tlm_generic_payload *trans) override;
45};
46
47} // namespace tlm2simics
48} // namespace systemc
49} // namespace simics
50
51#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Protocol specific transaction handler for Simics serial_peripheral_interface_slave interface.
Definition: spi_slave.h:30
iface::ReceiverInterface * receiver() override
SpiSlave()
Definition: spi_slave.h:32
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:36
Definition: pci_bus_interface.h:24