Trait opentitanlib::debug::dmi::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§