pub type R = crate::R<AHB3RSTRrs>;
pub type W = crate::W<AHB3RSTRrs>;
pub type FMCRST_R = crate::BitReader;
pub type FMCRST_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OSPI2RST_R = crate::BitReader;
pub type OSPI2RST_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn fmcrst(&self) -> FMCRST_R {
FMCRST_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ospi2rst(&self) -> OSPI2RST_R {
OSPI2RST_R::new(((self.bits >> 9) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AHB3RSTR")
.field("fmcrst", &self.fmcrst())
.field("ospi2rst", &self.ospi2rst())
.finish()
}
}
impl W {
#[inline(always)]
pub fn fmcrst(&mut self) -> FMCRST_W<AHB3RSTRrs> {
FMCRST_W::new(self, 0)
}
#[inline(always)]
pub fn ospi2rst(&mut self) -> OSPI2RST_W<AHB3RSTRrs> {
OSPI2RST_W::new(self, 9)
}
}
pub struct AHB3RSTRrs;
impl crate::RegisterSpec for AHB3RSTRrs {
type Ux = u32;
}
impl crate::Readable for AHB3RSTRrs {}
impl crate::Writable for AHB3RSTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for AHB3RSTRrs {}