pub struct TargetWrite {
pub target: String,
pub path: PathBuf,
pub offset: Option<u32>,
}Fields§
§target: String§path: PathBuf§offset: Option<u32>Implementations§
Source§impl TargetWrite
impl TargetWrite
pub fn load_data(&self) -> Result<Vec<Section>>
Sourcepub fn backdoor_write(
&self,
backdoor: &mut Backdoor,
verify: bool,
check_hash: bool,
) -> Result<()>
pub fn backdoor_write( &self, backdoor: &mut Backdoor, verify: bool, check_hash: bool, ) -> Result<()>
Write this file to backdoor’s target.
If check_hash is set, the preload is skipped entirely when the target’s
HASH_LAST_LOADED register already reports a (non-zero) hash matching this file’s
content – HASH_LAST_LOADED survives the backdoor loader’s own resets (see
Backdoor::read_target_hash), so this holds across consecutive tool invocations as
long as the FPGA itself isn’t power-cycled/reflashed. When check_hash is clear, the
preload always happens unconditionally. Either way, the new hash is only stamped once
the write itself completes without error.
Trait Implementations§
Source§impl Clone for TargetWrite
impl Clone for TargetWrite
Source§fn clone(&self) -> TargetWrite
fn clone(&self) -> TargetWrite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetWrite
impl Debug for TargetWrite
Auto Trait Implementations§
impl Freeze for TargetWrite
impl RefUnwindSafe for TargetWrite
impl Send for TargetWrite
impl Sync for TargetWrite
impl Unpin for TargetWrite
impl UnwindSafe for TargetWrite
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