pub type R = crate::R<WRPROT2rs>;
pub type WRPROT2_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn wrprot2(&self) -> WRPROT2_R {
WRPROT2_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WRPROT2")
.field("wrprot2", &self.wrprot2())
.finish()
}
}
pub struct WRPROT2rs;
impl crate::RegisterSpec for WRPROT2rs {
type Ux = u32;
}
impl crate::Readable for WRPROT2rs {}
impl crate::Resettable for WRPROT2rs {}