Struct BackdoorTarget

Source
pub struct BackdoorTarget<'a> {
    pub info: BackdoorTargetInfo,
    /* private fields */
}
Expand description

Handle for interacting with a given target via the backdoor loader.

Fields§

§info: BackdoorTargetInfo

Information about the target.

Implementations§

Source§

impl<'a> BackdoorTarget<'a>

Source

pub fn write( &mut self, start: u32, words: &[Word], write_all: bool, check_status: bool, ) -> Result<()>

Write a sequence of words at a given offset (word index) in the target’s memory.

The write_all parameter is used to control whether writes can be optimized by maintaining shadow CSRs to determine when register contents have genuinely changed. The check_status parameter is used to control whether the status bit is polled after all words are written, to check for any errors.

Source

pub fn read( &mut self, start: u32, count: u32, check_status: bool, ) -> Result<Vec<Word>>

Read a sequence of words at a given offset (word index) from the target’s memory.

The check_status parameter is used to control whether the status bit is polled after each word read, to check for any errors.

Source

pub fn clear(&mut self, word: &Word, check_status: bool) -> Result<()>

Clear the entire memory of the target with a given word.

An optimized fast-path for clearing memories, primarily used to replicate existing bitstream synthesis defaults. The check_status parameter is used to control whether the status bit is polled after clearing, to check for any errors.

Auto Trait Implementations§

§

impl<'a> Freeze for BackdoorTarget<'a>

§

impl<'a> RefUnwindSafe for BackdoorTarget<'a>

§

impl<'a> Send for BackdoorTarget<'a>

§

impl<'a> Sync for BackdoorTarget<'a>

§

impl<'a> Unpin for BackdoorTarget<'a>

§

impl<'a> !UnwindSafe for BackdoorTarget<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V