#[doc = "Register `SR` reader"] pub type R = crate::R; #[doc = "Field `URSTS` reader - User Reset Status"] pub type UrstsR = crate::BitReader; #[doc = "Field `RSTTYP` reader - Reset Type"] pub type RsttypR = crate::FieldReader; #[doc = "Field `NRSTL` reader - NRST Pin Level"] pub type NrstlR = crate::BitReader; #[doc = "Field `SRCMP` reader - Software Reset Command in Progress"] pub type SrcmpR = crate::BitReader; impl R { #[doc = "Bit 0 - User Reset Status"] #[inline(always)] pub fn ursts(&self) -> UrstsR { UrstsR::new((self.bits & 1) != 0) } #[doc = "Bits 8:10 - Reset Type"] #[inline(always)] pub fn rsttyp(&self) -> RsttypR { RsttypR::new(((self.bits >> 8) & 7) as u8) } #[doc = "Bit 16 - NRST Pin Level"] #[inline(always)] pub fn nrstl(&self) -> NrstlR { NrstlR::new(((self.bits >> 16) & 1) != 0) } #[doc = "Bit 17 - Software Reset Command in Progress"] #[inline(always)] pub fn srcmp(&self) -> SrcmpR { SrcmpR::new(((self.bits >> 17) & 1) != 0) } } #[doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec; impl crate::RegisterSpec for SrSpec { type Ux = u32; } #[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate::Readable for SrSpec {} #[doc = "`reset()` method sets SR to value 0"] impl crate::Resettable for SrSpec { const RESET_VALUE: u32 = 0; }