|
libmicroemu 0.2.0
ARM Microcontroller Emulator Library
|
Provides access to processor registers. More...
#include <reg_access.h>
Public Types | |
| using | CpuAccessor = TCpuAccessor |
| using | Reg = typename CpuAccessor::Reg |
| using | SReg = typename CpuAccessor::SReg |
Public Member Functions | |
| RegAccessor (CpuAccessor &cpua) | |
| Constructs a RegAccessor object with the given processor states. | |
| ~RegAccessor ()=default | |
| Default destructor for the RegAccessor object. | |
| RegAccessor (const RegAccessor &)=default | |
| Default copy constructor for the RegAccessor object. | |
| RegAccessor & | operator= (const RegAccessor &)=default |
| Default copy assignment operator for the RegAccessor object. | |
| RegAccessor (RegAccessor &&)=default | |
| Default move constructor for the RegAccessor object. | |
| RegAccessor & | operator= (RegAccessor &&)=default |
| Default move assignment operator for the RegAccessor object. | |
| std::string_view | GetRegisterName (const RegisterId &id) const override |
| Gets the name of the specified register. | |
| u32 | ReadRegister (const RegisterId &id) const override |
| Reads the value of the specified register. | |
| void | WriteRegister (const RegisterId &id, u32 value) override |
| Writes the value to the specified register. | |
Provides access to processor registers.
The RegAccessor class allows reading and writing values to processor registers. It provides methods to read the value of a register and write a value to a register. The class also handles edge cases where the register ID is out of range (greater than or equal to 16).
| TCpuAccessor | The type of the cpu accessor object used by the RegAccessor object. |
| TRegOps | The type of the register operations used by the RegAccessor object. |
|
inline |
Constructs a RegAccessor object with the given processor states.
| CpuAccessor | The processor states to be used by the RegAccessor object. |
|
inlineoverridevirtual |
Gets the name of the specified register.
| id | The ID of the register. |
Implements libmicroemu::IRegAccessor.
|
inlineoverridevirtual |
Reads the value of the specified register.
| reg_id | The ID of the register to be read. |
Implements libmicroemu::IRegAccessor.
|
inlineoverridevirtual |
Writes the value to the specified register.
| reg_id | The ID of the register to be written. |
| value | The value to be written to the register. |
Implements libmicroemu::IRegAccessor.