libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
Loading...
Searching...
No Matches
evmu_ram.h File Reference

Go to the source code of this file.

Data Structures

struct  EvmuRamClass
 
struct  EvmuRam
 

Macros

#define EVMU_RAM_NAME   "memory"
 
Type System

Type UUID and cast operators

#define EVMU_RAM_TYPE   (GBL_TYPEID(EvmuRam))
 
#define EVMU_RAM(self)   (GBL_CAST(EvmuRam, self))
 
#define EVMU_RAM_CLASS(klass)   (GBL_CLASS_CAST(EvmuRam, klass))
 
#define EVMU_RAM_GET_CLASS(self)   (GBL_CLASSOF(EvmuRam, self))
 

Enumerations

enum  EVMU_PROGRAM_SRC
 

Functions

GblType EvmuRam_type (void)
 

Detailed Description

EvmuRam top-level memory BUS entity.

Todo:
  • Move ROM and WRAM to respective peripherals
Author
2023 Falco Girgis

Definition in file evmu_ram.h.

Macro Definition Documentation

◆ EVMU_RAM

#define EVMU_RAM (   self)    (GBL_CAST(EvmuRam, self))

Cast GblInstance to EvmuRam.

Definition at line 23 of file evmu_ram.h.

◆ EVMU_RAM_CLASS

#define EVMU_RAM_CLASS (   klass)    (GBL_CLASS_CAST(EvmuRam, klass))

Cast GblClass to EvmuRamClass.

Definition at line 24 of file evmu_ram.h.

◆ EVMU_RAM_GET_CLASS

#define EVMU_RAM_GET_CLASS (   self)    (GBL_CLASSOF(EvmuRam, self))

Get EvmuRamClass from GblInstances

Definition at line 25 of file evmu_ram.h.

◆ EVMU_RAM_NAME

#define EVMU_RAM_NAME   "memory"

GblObject peripheral name.

Definition at line 28 of file evmu_ram.h.

◆ EVMU_RAM_TYPE

#define EVMU_RAM_TYPE   (GBL_TYPEID(EvmuRam))

Type UUID for EvmuRam.

Definition at line 22 of file evmu_ram.h.

Enumeration Type Documentation

◆ EVMU_PROGRAM_SRC

Source memory space for program execution.

Enumerator
EVMU_PROGRAM_SRC_ROM 

ROM.

EVMU_PROGRAM_SRC_FLASH_BANK_0 

Flash (Bank 0)

EVMU_PROGRAM_SRC_FLASH_BANK_1 

Flash (Bank 1)

Definition at line 37 of file evmu_ram.h.

37 {
38 EVMU_PROGRAM_SRC_ROM = EVMU_SFR_EXT_ROM,
39 EVMU_PROGRAM_SRC_FLASH_BANK_0 = EVMU_SFR_EXT_FLASH_BANK_0,
40 EVMU_PROGRAM_SRC_FLASH_BANK_1 = EVMU_SFR_EXT_FLASH_BANK_1
EVMU_PROGRAM_SRC
Source memory space for program execution.
Definition evmu_ram.h:37
@ EVMU_PROGRAM_SRC_FLASH_BANK_1
Flash (Bank 1)
Definition evmu_ram.h:40
@ EVMU_PROGRAM_SRC_FLASH_BANK_0
Flash (Bank 0)
Definition evmu_ram.h:39
@ EVMU_PROGRAM_SRC_ROM
ROM.
Definition evmu_ram.h:38

Function Documentation

◆ EvmuRam_type()

GblType EvmuRam_type ( void  )

Returns the GblType UUID associated with EvmuRam.