pub struct OpenOcdJtagTap { /* private fields */ }
Expand description
An JTAG interface driver over OpenOCD.
Trait Implementations§
Source§impl Jtag for OpenOcdJtagTap
impl Jtag for OpenOcdJtagTap
Source§fn into_raw(self: Box<Self>) -> Result<OpenOcd>
fn into_raw(self: Box<Self>) -> Result<OpenOcd>
Stop further operation and returns raw OpenOCD instance.
Source§fn read_lc_ctrl_reg(&mut self, reg: &LcCtrlReg) -> Result<u32>
fn read_lc_ctrl_reg(&mut self, reg: &LcCtrlReg) -> Result<u32>
Read a lifecycle controller register.
Source§fn write_lc_ctrl_reg(&mut self, reg: &LcCtrlReg, value: u32) -> Result<()>
fn write_lc_ctrl_reg(&mut self, reg: &LcCtrlReg, value: u32) -> Result<()>
Write a value to a lifecycle controller register.
Source§fn read_memory(&mut self, addr: u32, buf: &mut [u8]) -> Result<usize>
fn read_memory(&mut self, addr: u32, buf: &mut [u8]) -> Result<usize>
Read bytes/words from memory into the provided buffer.
When reading bytes, each memory access is 8 bits.
When reading words, each memory access is 32 bit. If the hardware
does not support unaligned memory accesses, this function will fail. Read more
fn read_memory32(&mut self, addr: u32, buf: &mut [u32]) -> Result<usize>
fn write_memory32(&mut self, addr: u32, buf: &[u32]) -> Result<()>
Source§fn wait_halt(&mut self, timeout: Duration) -> Result<()>
fn wait_halt(&mut self, timeout: Duration) -> Result<()>
Wait until the target halt. This does NOT halt the target on timeout.
Source§fn reset(&mut self, run: bool) -> Result<()>
fn reset(&mut self, run: bool) -> Result<()>
Reset the target as hard as possible.
If run is true, the target will start running code immediately
after reset, otherwise it will be halted immediately.
Source§fn step_at(&mut self, addr: u32) -> Result<()>
fn step_at(&mut self, addr: u32) -> Result<()>
Single-step the target at the specified address.
fn write_riscv_reg(&mut self, reg: &RiscvReg, val: u32) -> Result<()>
Source§fn set_breakpoint(&mut self, address: u32, hw: bool) -> Result<()>
fn set_breakpoint(&mut self, address: u32, hw: bool) -> Result<()>
Set a breakpoint at the given address.
fn remove_breakpoint(&mut self, addr: u32) -> Result<()>
fn remove_all_breakpoints(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for OpenOcdJtagTap
impl RefUnwindSafe for OpenOcdJtagTap
impl Send for OpenOcdJtagTap
impl Sync for OpenOcdJtagTap
impl Unpin for OpenOcdJtagTap
impl UnwindSafe for OpenOcdJtagTap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more