opentitanlib::debug::dmi

Trait Dmi

Source
pub trait Dmi {
    // Required methods
    fn dmi_read(&mut self, addr: u32) -> Result<u32>;
    fn dmi_write(&mut self, addr: u32, data: u32) -> Result<()>;
}
Expand description

Debug module interface (DMI) abstraction.

Required Methods§

Source

fn dmi_read(&mut self, addr: u32) -> Result<u32>

Read a DMI register.

Source

fn dmi_write(&mut self, addr: u32, data: u32) -> Result<()>

Write a DMI register.

Implementations on Foreign Types§

Source§

impl<T: Dmi> Dmi for &mut T

Source§

fn dmi_read(&mut self, addr: u32) -> Result<u32>

Source§

fn dmi_write(&mut self, addr: u32, data: u32) -> Result<()>

Implementors§