pub type R = crate::R<UR14rs>;
pub type W = crate::W<UR14rs>;
pub type D1STPRST_R = crate::BitReader;
pub type D1STPRST_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type D2SBRST_R = crate::BitReader;
pub type D2SBRST_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn d1stprst(&self) -> D1STPRST_R {
D1STPRST_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn d2sbrst(&self) -> D2SBRST_R {
D2SBRST_R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UR14")
.field("d1stprst", &self.d1stprst())
.field("d2sbrst", &self.d2sbrst())
.finish()
}
}
impl W {
#[inline(always)]
pub fn d1stprst(&mut self) -> D1STPRST_W<UR14rs> {
D1STPRST_W::new(self, 0)
}
#[inline(always)]
pub fn d2sbrst(&mut self) -> D2SBRST_W<UR14rs> {
D2SBRST_W::new(self, 16)
}
}
pub struct UR14rs;
impl crate::RegisterSpec for UR14rs {
type Ux = u32;
}
impl crate::Readable for UR14rs {}
impl crate::Writable for UR14rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for UR14rs {}