8#include "libmicroemu/types.h"
52constexpr auto kLastSpecialRegister = kLastRuntimeSpecialRegister;
63 return static_cast<u32
>(kLastPersistentSpecialRegister) + 1U;
74 return static_cast<u32
>(kLastSpecialRegister) + 1U;
The libmicroemu namespace contains all classes and functions of the libmicroemu which are public.
Definition bkpt_flags.h:6
SpecialRegisterId
Enumeration of special register IDs.
Definition special_register_id.h:18
@ kSpMain
Main Stack Pointer, MSP.
Definition special_register_id.h:33
@ kSpProcess
Process Stack Pointer, PSP.
Definition special_register_id.h:34
@ kVtor
Vector Table Offset Register, VTOR.
Definition special_register_id.h:29
@ kCfsr
Configurable Fault Status Register, CFSR.
Definition special_register_id.h:31
@ kSysTickCsr
SYSTICK_CSR - SysTick Control and Status Register.
Definition special_register_id.h:35
@ kEpsr
Execution Program Status Register, EPSR.
Definition special_register_id.h:44
@ kSysTickCalib
SYST_CALIB - SysTick Calibration Value Register.
Definition special_register_id.h:38
@ kSysTickCvr
SYST_CVR - SysTick Current Value Register.
Definition special_register_id.h:37
@ kIstate
If-Then Execution state bits.
Definition special_register_id.h:27
@ kIpsr
Interrupt Program Status Register, IPSR.
Definition special_register_id.h:28
@ kSysTickRvr
SYSTICK_RVR - SysTick Reload Value Register.
Definition special_register_id.h:36
@ kBfar
Bus Fault Address Register, BFAR.
Definition special_register_id.h:32
@ kSysCtrl
System Control Register, SYSCTRL.
Definition special_register_id.h:25
@ kApsr
Application Program Status Register, APSR.
Definition special_register_id.h:26
@ kControl
Control register, CONTROL.
Definition special_register_id.h:46
@ kCcr
Configuration and Control Register, CCR.
Definition special_register_id.h:30
@ kXpsr
Program status register, XPSR.
Definition special_register_id.h:45
static constexpr u32 CountSpecialRegisters() noexcept
Returns the number of special registers.
Definition special_register_id.h:73
static constexpr u32 CountPersistentSpecialRegisters() noexcept
Returns the number of persistent special registers.
Definition special_register_id.h:62