#[repr(transparent)]pub struct SbpiInstr(pub u32);Expand description
Dispatch instructions to the SBPI interface, used for programming the OTP fuses.
Tuple Fields§
§0: u32Implementations§
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 const fn set_short_wdata(&mut self, val: u8)
pub const 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 const fn set_cmd(&mut self, val: u8)
Sourcepub const fn set_target(&mut self, val: u8)
pub const 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 const fn set_payload_size_m1(&mut self, val: u8)
pub const 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 const fn set_has_payload(&mut self, val: bool)
pub const 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