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

Go to the source code of this file.

Data Structures

struct  EvmuWramClass
 
struct  EvmuWram
 

Macros

#define EVMU_WRAM_NAME   "wram"
 
Type System

Type UUID and cast operators

#define EVMU_WRAM_TYPE   (GBL_TYPEID(EvmuWram))
 
#define EVMU_WRAM(self)   (GBL_CAST(EvmuWram, self))
 
#define EVMU_WRAM_CLASS(klass)   (GBL_CLASS_CAST(EvmuWram, klass))
 
#define EVMU_WRAM_GET_CLASS(self)   (GBL_CLASSOF(EvmuWram, self))
 
Address Space

Region size and location definitions

#define EVMU_WRAM_BANK_COUNT   2
 
#define EVMU_WRAM_BANK_SIZE   256
 
#define EVMU_WRAM_SIZE   (EVMU_WRAM_BANK_COUNT * EVMU_WRAM_BANK_SIZE)
 

Functions

GblType EvmuWram_type (void)
 

Detailed Description

EvmuWram: Work-RAM peripheral memory API.

Author
2023 Falco Girgis

Definition in file evmu_wram.h.

Macro Definition Documentation

◆ EVMU_WRAM

#define EVMU_WRAM (   self)    (GBL_CAST(EvmuWram, self))

Function-style cast for GblInstance.

Definition at line 19 of file evmu_wram.h.

◆ EVMU_WRAM_BANK_COUNT

#define EVMU_WRAM_BANK_COUNT   2

Number of banks in WRAM.

Definition at line 30 of file evmu_wram.h.

◆ EVMU_WRAM_BANK_SIZE

#define EVMU_WRAM_BANK_SIZE   256

Size of each bank in WRAM.

Definition at line 31 of file evmu_wram.h.

◆ EVMU_WRAM_CLASS

#define EVMU_WRAM_CLASS (   klass)    (GBL_CLASS_CAST(EvmuWram, klass))

Function-style cast for GblClass.

Definition at line 20 of file evmu_wram.h.

◆ EVMU_WRAM_GET_CLASS

#define EVMU_WRAM_GET_CLASS (   self)    (GBL_CLASSOF(EvmuWram, self))

Get EvmuWramClass from GblInstance

Definition at line 21 of file evmu_wram.h.

◆ EVMU_WRAM_NAME

#define EVMU_WRAM_NAME   "wram"

EvmuWram GblObject name.

Definition at line 24 of file evmu_wram.h.

◆ EVMU_WRAM_SIZE

#define EVMU_WRAM_SIZE   (EVMU_WRAM_BANK_COUNT * EVMU_WRAM_BANK_SIZE)

Total size of WRAM (both banks)

Definition at line 32 of file evmu_wram.h.

◆ EVMU_WRAM_TYPE

#define EVMU_WRAM_TYPE   (GBL_TYPEID(EvmuWram))

Type UUID for EvmuWram.

Definition at line 18 of file evmu_wram.h.

Function Documentation

◆ EvmuWram_type()

GblType EvmuWram_type ( void  )

Returns the GblType UUID associated with EvmuWram.