Struct probe_rs::RegisterFile
source · [−]pub struct RegisterFile { /* private fields */ }
Expand description
Register description for a core.
Implementations
sourceimpl RegisterFile
impl RegisterFile
sourcepub fn platform_registers(&self) -> impl Iterator<Item = &RegisterDescription>
pub fn platform_registers(&self) -> impl Iterator<Item = &RegisterDescription>
Returns an iterator over the descriptions of all the “platform” registers of this core.
sourcepub fn frame_pointer(&self) -> &RegisterDescription
pub fn frame_pointer(&self) -> &RegisterDescription
The frame pointer.
sourcepub fn program_counter(&self) -> &RegisterDescription
pub fn program_counter(&self) -> &RegisterDescription
The program counter.
sourcepub fn stack_pointer(&self) -> &RegisterDescription
pub fn stack_pointer(&self) -> &RegisterDescription
The stack pointer.
sourcepub fn return_address(&self) -> &RegisterDescription
pub fn return_address(&self) -> &RegisterDescription
The link register.
sourcepub fn argument_register(&self, index: usize) -> &RegisterDescription
pub fn argument_register(&self, index: usize) -> &RegisterDescription
sourcepub fn get_argument_register(&self, index: usize) -> Option<&RegisterDescription>
pub fn get_argument_register(&self, index: usize) -> Option<&RegisterDescription>
Returns the nth argument register if it is exists, None
otherwise.
sourcepub fn result_register(&self, index: usize) -> &RegisterDescription
pub fn result_register(&self, index: usize) -> &RegisterDescription
sourcepub fn get_result_register(&self, index: usize) -> Option<&RegisterDescription>
pub fn get_result_register(&self, index: usize) -> Option<&RegisterDescription>
Returns the nth result register if it is exists, None
otherwise.
sourcepub fn platform_register(&self, index: usize) -> &RegisterDescription
pub fn platform_register(&self, index: usize) -> &RegisterDescription
sourcepub fn get_platform_register(&self, index: usize) -> Option<&RegisterDescription>
pub fn get_platform_register(&self, index: usize) -> Option<&RegisterDescription>
Returns the nth platform register if it is exists, None
otherwise.
sourcepub fn msp(&self) -> Option<&RegisterDescription>
pub fn msp(&self) -> Option<&RegisterDescription>
The main stack pointer.
sourcepub fn psp(&self) -> Option<&RegisterDescription>
pub fn psp(&self) -> Option<&RegisterDescription>
The process stack pointer.
sourcepub fn psr(&self) -> Option<&RegisterDescription>
pub fn psr(&self) -> Option<&RegisterDescription>
The processor status register.
sourcepub fn other(&self) -> impl Iterator<Item = &RegisterDescription>
pub fn other(&self) -> impl Iterator<Item = &RegisterDescription>
Other architecture specific registers
sourcepub fn other_by_name(&self, name: &str) -> Option<&RegisterDescription>
pub fn other_by_name(&self, name: &str) -> Option<&RegisterDescription>
Find an architecture specific register by name
sourcepub fn fpscr(&self) -> Option<&RegisterDescription>
pub fn fpscr(&self) -> Option<&RegisterDescription>
The fpu status register.
sourcepub fn fpu_registers(
&self
) -> Option<impl Iterator<Item = &RegisterDescription>>
pub fn fpu_registers(
&self
) -> Option<impl Iterator<Item = &RegisterDescription>>
Returns an iterator over the descriptions of all the registers of this core.
sourcepub fn fpu_register(&self, index: usize) -> Option<&RegisterDescription>
pub fn fpu_register(&self, index: usize) -> Option<&RegisterDescription>
sourcepub fn get_fpu_register(&self, index: usize) -> Option<&RegisterDescription>
pub fn get_fpu_register(&self, index: usize) -> Option<&RegisterDescription>
Returns the nth fpu register if it is exists, None
otherwise.
Trait Implementations
sourceimpl Debug for RegisterFile
impl Debug for RegisterFile
sourceimpl PartialEq<RegisterFile> for RegisterFile
impl PartialEq<RegisterFile> for RegisterFile
sourcefn eq(&self, other: &RegisterFile) -> bool
fn eq(&self, other: &RegisterFile) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RegisterFile) -> bool
fn ne(&self, other: &RegisterFile) -> bool
This method tests for !=
.
impl StructuralPartialEq for RegisterFile
Auto Trait Implementations
impl RefUnwindSafe for RegisterFile
impl Send for RegisterFile
impl Sync for RegisterFile
impl Unpin for RegisterFile
impl UnwindSafe for RegisterFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more