TEMU  4.4
The Terma Emulator
SPI.h File Reference
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include "temu-c/Memory/Memory.h"
#include "temu-c/Models/Device.h"
#include "temu-c/Support/Logging.h"
#include "temu-c/Support/Objsys.h"
Include dependency graph for SPI.h:

Go to the source code of this file.

Data Structures

struct  temu_SpiDevConfig
 
struct  temu_SpiSlaveDevice
 
struct  temu_SpiMasterDeviceIface
 
struct  temu_SpiSlaveDeviceIface
 
struct  temu_SpiBus
 
struct  temu_SpiBusIface
 
struct  temu_SpiRomIface
 

Macros

#define teSPI_WRSR   0x01
 
#define teSPI_WRITE   0x02
 
#define teSPI_READ   0x03
 
#define teSPI_WDI   0x04
 
#define teSPI_STAT   0x05
 
#define teSPI_WEN   0x06
 
#define TEMU_SPI_MASTER_IFACE_TYPE   "temu::SpiMasterDeviceIface"
 
#define TEMU_SPI_SLAVE_DEV_IFACE_TYPE   "temu::SpiSlaveDeviceIface"
 
#define TEMU_SPI_BUS_IFACE_TYPE   "temu::SpiBusIface"
 
#define TEMU_SPI_ROM_IFACE_TYPE   "temu::SpiRomIface"
 

Typedefs

typedef struct temu_SpiRomIface temu_SpiRomIface
 

Functions

 TEMU_IFACE_REFERENCE_TYPE (temu_SpiRom)
 

Macro Definition Documentation

◆ TEMU_SPI_BUS_IFACE_TYPE

#define TEMU_SPI_BUS_IFACE_TYPE   "temu::SpiBusIface"

◆ TEMU_SPI_MASTER_IFACE_TYPE

#define TEMU_SPI_MASTER_IFACE_TYPE   "temu::SpiMasterDeviceIface"

◆ TEMU_SPI_ROM_IFACE_TYPE

#define TEMU_SPI_ROM_IFACE_TYPE   "temu::SpiRomIface"

◆ TEMU_SPI_SLAVE_DEV_IFACE_TYPE

#define TEMU_SPI_SLAVE_DEV_IFACE_TYPE   "temu::SpiSlaveDeviceIface"

◆ teSPI_READ

#define teSPI_READ   0x03

◆ teSPI_STAT

#define teSPI_STAT   0x05

◆ teSPI_WDI

#define teSPI_WDI   0x04

◆ teSPI_WEN

#define teSPI_WEN   0x06

◆ teSPI_WRITE

#define teSPI_WRITE   0x02

◆ teSPI_WRSR

#define teSPI_WRSR   0x01

Typedef Documentation

◆ temu_SpiRomIface

Function Documentation

◆ TEMU_IFACE_REFERENCE_TYPE()

TEMU_IFACE_REFERENCE_TYPE ( temu_SpiRom  )