pub type R = crate::R<ROTSRPrs>;
pub type W = crate::W<ROTSRPrs>;
pub type OEM_PROVD_R = crate::FieldReader;
pub type OEM_PROVD_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type DBG_AUTH_R = crate::FieldReader;
pub type DBG_AUTH_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type IROT_SELECT_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn oem_provd(&self) -> OEM_PROVD_R {
OEM_PROVD_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn dbg_auth(&self) -> DBG_AUTH_R {
DBG_AUTH_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn irot_select(&self) -> IROT_SELECT_R {
IROT_SELECT_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ROTSRP")
.field("oem_provd", &self.oem_provd())
.field("dbg_auth", &self.dbg_auth())
.field("irot_select", &self.irot_select())
.finish()
}
}
impl W {
#[inline(always)]
pub fn oem_provd(&mut self) -> OEM_PROVD_W<ROTSRPrs> {
OEM_PROVD_W::new(self, 0)
}
#[inline(always)]
pub fn dbg_auth(&mut self) -> DBG_AUTH_W<ROTSRPrs> {
DBG_AUTH_W::new(self, 8)
}
}
pub struct ROTSRPrs;
impl crate::RegisterSpec for ROTSRPrs {
type Ux = u32;
}
impl crate::Readable for ROTSRPrs {}
impl crate::Writable for ROTSRPrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ROTSRPrs {}