#[repr(transparent)]pub struct SbpiInstr(pub u32);
Expand description
Dispatch instructions to the SBPI interface, used for programming the OTP fuses.
Tuple Fields§
§0: u32
Implementations§
source§impl SbpiInstr
impl SbpiInstr
sourcepub const fn short_wdata(&self) -> u8
pub const fn short_wdata(&self) -> u8
wdata to be used only when payload_size_m1=0
sourcepub fn set_short_wdata(&mut self, val: u8)
pub fn set_short_wdata(&mut self, val: u8)
wdata to be used only when payload_size_m1=0
pub const fn cmd(&self) -> u8
pub fn set_cmd(&mut self, val: u8)
sourcepub fn set_target(&mut self, val: u8)
pub fn set_target(&mut self, val: u8)
Instruction target, it can be PMC (0x3a) or DAP (0x02)
sourcepub const fn payload_size_m1(&self) -> u8
pub const fn payload_size_m1(&self) -> u8
Instruction payload size in bytes minus 1
sourcepub fn set_payload_size_m1(&mut self, val: u8)
pub fn set_payload_size_m1(&mut self, val: u8)
Instruction payload size in bytes minus 1
sourcepub const fn has_payload(&self) -> bool
pub const fn has_payload(&self) -> bool
Instruction has payload (data to be written or to be read)
sourcepub fn set_has_payload(&mut self, val: bool)
pub fn set_has_payload(&mut self, val: bool)
Instruction has payload (data to be written or to be read)
Trait Implementations§
impl Copy for SbpiInstr
impl Eq for SbpiInstr
impl StructuralPartialEq for SbpiInstr
Auto Trait Implementations§
impl Freeze for SbpiInstr
impl RefUnwindSafe for SbpiInstr
impl Send for SbpiInstr
impl Sync for SbpiInstr
impl Unpin for SbpiInstr
impl UnwindSafe for SbpiInstr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)