pub struct OtpPartition;
Expand description
Commands for operating on OTP partitions.
Implementations§
Source§impl OtpPartition
impl OtpPartition
Sourcepub fn lock(jtag: &mut dyn Jtag, partition: Partition) -> OtpDaiResult<()>
pub fn lock(jtag: &mut dyn Jtag, partition: Partition) -> OtpDaiResult<()>
Lock the given partition by calculating its digest.
Sourcepub fn read_digest(
jtag: &mut dyn Jtag,
partition: Partition,
) -> OtpDaiResult<[u32; 2]>
pub fn read_digest( jtag: &mut dyn Jtag, partition: Partition, ) -> OtpDaiResult<[u32; 2]>
Read back this partition’s digest from the OTP.
This goes via the DAI, but partitions are also exposed via CSRs after reset.
Auto Trait Implementations§
impl Freeze for OtpPartition
impl RefUnwindSafe for OtpPartition
impl Send for OtpPartition
impl Sync for OtpPartition
impl Unpin for OtpPartition
impl UnwindSafe for OtpPartition
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