SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
spi_slave_interface.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2025 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_IFACE_SPI_SLAVE_INTERFACE_H
17#define SIMICS_SYSTEMC_IFACE_SPI_SLAVE_INTERFACE_H
18
19#include <simics/base/conf-object.h>
20#include <simics/devs/serial-peripheral-interface.h>
21#include <simics/util/dbuffer.h>
22
23namespace simics {
24namespace systemc {
25namespace iface {
26
28//:: pre SpiSlaveInterface {{
30 public:
31 virtual void spi_request(int first, int last, const uint8 *data_ptr,
32 size_t data_length) = 0;
33 virtual void connect_master(conf_object_t *master, const char *port,
34 serial_peripheral_interface_flags_t flags) = 0;
35 virtual void disconnect_master(conf_object_t *master) = 0;
36 virtual ~SpiSlaveInterface() {}
37};
38// }}
39
40} // namespace iface
41} // namespace systemc
42} // namespace simics
43
44#endif
Simics serial_peripheral_interface_slave interface.
Definition: spi_slave_interface.h:29
virtual ~SpiSlaveInterface()
Definition: spi_slave_interface.h:36
virtual void spi_request(int first, int last, const uint8 *data_ptr, size_t data_length)=0
virtual void connect_master(conf_object_t *master, const char *port, serial_peripheral_interface_flags_t flags)=0
virtual void disconnect_master(conf_object_t *master)=0
Definition: adapter.h:80