libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
libmicroemu::ISpecialRegAccessor Class Referenceabstract

Interface for accessing special registers. More...

#include <emu_context.h>

Inheritance diagram for libmicroemu::ISpecialRegAccessor:
libmicroemu::internal::SpecialRegAccessor< TCpuAccessor >

Public Member Functions

virtual std::string_view GetRegisterName (const SpecialRegisterId &reg_id) const =0
 Gets the name of the specified special register.
 
virtual u32 ReadRegister (const SpecialRegisterId &reg_id) const =0
 Reads the value of the specified special register.
 
virtual void WriteRegister (const SpecialRegisterId &reg_id, u32 value)=0
 Writes the value to the specified special register.
 

Detailed Description

Interface for accessing special registers.

Member Function Documentation

◆ GetRegisterName()

virtual std::string_view libmicroemu::ISpecialRegAccessor::GetRegisterName ( const SpecialRegisterId & reg_id) const
pure virtual

Gets the name of the specified special register.

Parameters
reg_idThe ID of the special register.
Returns
The name of the special register.

Implemented in libmicroemu::internal::SpecialRegAccessor< TCpuAccessor >.

◆ ReadRegister()

virtual u32 libmicroemu::ISpecialRegAccessor::ReadRegister ( const SpecialRegisterId & reg_id) const
pure virtual

Reads the value of the specified special register.

Parameters
reg_idThe ID of the special register to be read.
Returns
The value of the special register.

Implemented in libmicroemu::internal::SpecialRegAccessor< TCpuAccessor >.

◆ WriteRegister()

virtual void libmicroemu::ISpecialRegAccessor::WriteRegister ( const SpecialRegisterId & reg_id,
u32 value )
pure virtual

Writes the value to the specified special register.

Parameters
reg_idThe ID of the special register to be written.
valueThe value to be written to the special register.

Implemented in libmicroemu::internal::SpecialRegAccessor< TCpuAccessor >.


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