hal_core::interrupt::ctx

Trait Context

Source
pub trait Context {
    type Registers: Debug + Display;

    // Required methods
    fn registers(&self) -> &Self::Registers;
    unsafe fn registers_mut(&mut self) -> &mut Self::Registers;
}

Required Associated Types§

Required Methods§

Source

fn registers(&self) -> &Self::Registers

Source

unsafe fn registers_mut(&mut self) -> &mut Self::Registers

§Safety

Mutating the value of saved interrupt registers can cause undefined behavior.

Implementors§