pub type R = crate::R<OTP_STATUSrs>;
pub type SECURE_R = crate::BitReader;
pub type FULLDBG_R = crate::BitReader;
pub type INVALID_R = crate::BitReader;
pub type BUSY_R = crate::BitReader;
pub type PROGFAIL_R = crate::BitReader;
pub type PWRON_R = crate::BitReader;
pub type BIST1LOCK_R = crate::BitReader;
pub type BIST2LOCK_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn secure(&self) -> SECURE_R {
SECURE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn fulldbg(&self) -> FULLDBG_R {
FULLDBG_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn invalid(&self) -> INVALID_R {
INVALID_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn busy(&self) -> BUSY_R {
BUSY_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn progfail(&self) -> PROGFAIL_R {
PROGFAIL_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pwron(&self) -> PWRON_R {
PWRON_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn bist1lock(&self) -> BIST1LOCK_R {
BIST1LOCK_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn bist2lock(&self) -> BIST2LOCK_R {
BIST2LOCK_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTP_STATUS")
.field("secure", &self.secure())
.field("fulldbg", &self.fulldbg())
.field("invalid", &self.invalid())
.field("busy", &self.busy())
.field("progfail", &self.progfail())
.field("pwron", &self.pwron())
.field("bist1lock", &self.bist1lock())
.field("bist2lock", &self.bist2lock())
.finish()
}
}
pub struct OTP_STATUSrs;
impl crate::RegisterSpec for OTP_STATUSrs {
type Ux = u32;
}
impl crate::Readable for OTP_STATUSrs {}
impl crate::Resettable for OTP_STATUSrs {}