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

#include <evmu_wram.h>

Inheritance diagram for EvmuWram:
EvmuPeripheral EvmuIMemory EvmuIBehavior

Data Fields

union { 
 
   EvmuWramClass *   pClass 
 
   EvmuPeripheral   base 
 
};  
 
GblBool dataChanged
 
- Data Fields inherited from EvmuPeripheral
union { 
 
   EvmuPeripheralClass *   pClass 
 
   GblObject   base 
 
};  
 
GblFlags logLevel
 

Related Symbols

(Note that these are not member symbols.)

Configuration Methods

Methods for querying or updating configuration

EvmuAddress EvmuWram_accessAddress (const EvmuWram *pSelf)
 
EVMU_RESULT EvmuWram_setAccessAddress (EvmuWram *pSelf, EvmuAddress addr)
 
GblBool EvmuWram_mapleTransferring (const EvmuWram *pSelf)
 
Read/Write Accessors

Methods for reading and writing WRAM data

EvmuWord EvmuWram_readByte (const EvmuWram *pSelf, EvmuAddress address)
 
EVMU_RESULT EvmuWram_readBytes (const EvmuWram *pSelf, EvmuAddress address, void *pData, size_t *pSize)
 
EVMU_RESULT EvmuWram_writeByte (EvmuWram *pSelf, EvmuAddress address, EvmuWord byte)
 
EVMU_RESULT EvmuWram_writeBytes (EvmuWram *pSelf, EvmuAddress address, const void *pData, size_t *pSize)
 

Detailed Description

GblInstance structure for EvmuWram.

No public members.

See also
EvmuWramClass

Definition at line 62 of file evmu_wram.h.

Friends And Related Symbol Documentation

◆ EvmuWram_accessAddress()

EvmuAddress EvmuWram_accessAddress ( const EvmuWram * pSelf)
related

Returns the target address created by using VRMAD1 the low byte, and VRMAD2 as the bank.

◆ EvmuWram_mapleTransferring()

GblBool EvmuWram_mapleTransferring ( const EvmuWram * pSelf)
related

Returns GBL_TRUE of a Maple transfer from the Dreamcast is in progress, disallowing VMU access.

◆ EvmuWram_readByte()

EvmuWord EvmuWram_readByte ( const EvmuWram * pSelf,
EvmuAddress address )
related

Returns the byte value located at the given WRAM address.

◆ EvmuWram_readBytes()

EVMU_RESULT EvmuWram_readBytes ( const EvmuWram * pSelf,
EvmuAddress address,
void * pData,
size_t * pSize )
related

Reads pSize bytes from WRAM into pData, starting at address, writing back the number of bytes read.

◆ EvmuWram_setAccessAddress()

EVMU_RESULT EvmuWram_setAccessAddress ( EvmuWram * pSelf,
EvmuAddress addr )
related

Configures the values of VRMAD1 and VRMAD2 so that they point to the address given by addr.

◆ EvmuWram_writeByte()

EVMU_RESULT EvmuWram_writeByte ( EvmuWram * pSelf,
EvmuAddress address,
EvmuWord byte )
related

Writes the byte value to the WRAM address.

◆ EvmuWram_writeBytes()

EVMU_RESULT EvmuWram_writeBytes ( EvmuWram * pSelf,
EvmuAddress address,
const void * pData,
size_t * pSize )
related

Writes pSize bytes to WRAM from pData, starting at address, writing back the number of bytes written.

Field Documentation

◆ base

EvmuPeripheral EvmuWram::base

Inherited base instance structure.

Definition at line 62 of file evmu_wram.h.

◆ dataChanged

GblBool EvmuWram::dataChanged

User toggle: will be set after a WRAM value changes, you can reset and poll for changes.

Definition at line 63 of file evmu_wram.h.

◆ pClass

EvmuWramClass* EvmuWram::pClass

Pointer to class/vtable structure.

Definition at line 62 of file evmu_wram.h.


The documentation for this struct was generated from the following file: