libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
libmicroemu::SingleExceptionState Struct Reference

Represents the state of a single exception. More...

#include <exception_states.h>

Public Member Functions

constexpr SingleExceptionState (u8 number)
 
void ClearFlags () noexcept
 Clears all flags of the exception.
 
bool IsPending () const noexcept
 Checks if the exception is pending.
 
void ClearPending () noexcept
 Clears the pending flag of the exception.
 
void SetPending () noexcept
 Sets the pending flag of the exception.
 
bool IsActive () const noexcept
 Checks if the exception is active.
 
void ClearActive () noexcept
 Clears the active flag of the exception.
 
void SetActive () noexcept
 Sets the active flag of the exception.
 
i16 GetPriority () const noexcept
 Gets the priority of the exception.
 
void SetPriority (i16 priority) noexcept
 Sets the priority of the exception.
 
u8 GetNumber () const noexcept
 Gets the number of the exception.
 

Detailed Description

Represents the state of a single exception.

Member Function Documentation

◆ GetNumber()

u8 libmicroemu::SingleExceptionState::GetNumber ( ) const
inlinenoexcept

Gets the number of the exception.

Returns
The number of the exception.

◆ GetPriority()

i16 libmicroemu::SingleExceptionState::GetPriority ( ) const
inlinenoexcept

Gets the priority of the exception.

Returns
The priority of the exception.

◆ IsActive()

bool libmicroemu::SingleExceptionState::IsActive ( ) const
inlinenoexcept

Checks if the exception is active.

Returns
True if the exception is active, false otherwise.

◆ IsPending()

bool libmicroemu::SingleExceptionState::IsPending ( ) const
inlinenoexcept

Checks if the exception is pending.

Returns
True if the exception is pending, false otherwise.

◆ SetPriority()

void libmicroemu::SingleExceptionState::SetPriority ( i16 priority)
inlinenoexcept

Sets the priority of the exception.

Parameters
priorityThe priority of the exception.

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