pub type R = crate::R<PCROP1ERrs>;
pub type W = crate::W<PCROP1ERrs>;
pub type PCROP1_END_R = crate::FieldReader<u16>;
pub type PCROP1_END_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type PCROP_RDP_R = crate::BitReader;
pub type PCROP_RDP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pcrop1_end(&self) -> PCROP1_END_R {
PCROP1_END_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn pcrop_rdp(&self) -> PCROP_RDP_R {
PCROP_RDP_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PCROP1ER")
.field("pcrop1_end", &self.pcrop1_end())
.field("pcrop_rdp", &self.pcrop_rdp())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pcrop1_end(&mut self) -> PCROP1_END_W<PCROP1ERrs> {
PCROP1_END_W::new(self, 0)
}
#[inline(always)]
pub fn pcrop_rdp(&mut self) -> PCROP_RDP_W<PCROP1ERrs> {
PCROP_RDP_W::new(self, 31)
}
}
pub struct PCROP1ERrs;
impl crate::RegisterSpec for PCROP1ERrs {
type Ux = u32;
}
impl crate::Readable for PCROP1ERrs {}
impl crate::Writable for PCROP1ERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PCROP1ERrs {
const RESET_VALUE: u32 = 0x0fff_0000;
}