pub type R = crate::R<PCROP2ERrs>;
pub type W = crate::W<PCROP2ERrs>;
pub type PCROP2_END_R = crate::FieldReader<u16>;
pub type PCROP2_END_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn pcrop2_end(&self) -> PCROP2_END_R {
PCROP2_END_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("PCROP2ER")
.field("pcrop2_end", &self.pcrop2_end())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pcrop2_end(&mut self) -> PCROP2_END_W<PCROP2ERrs> {
PCROP2_END_W::new(self, 0)
}
}
pub struct PCROP2ERrs;
impl crate::RegisterSpec for PCROP2ERrs {
type Ux = u32;
}
impl crate::Readable for PCROP2ERrs {}
impl crate::Writable for PCROP2ERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PCROP2ERrs {
const RESET_VALUE: u32 = 0xffff_0000;
}