#[doc = "Register `RST_BITS_COUNTER` reader"] pub type R = crate::R; #[doc = "Register `RST_BITS_COUNTER` writer"] pub type W = crate::W; #[doc = "Field `RST_BITS_COUNTER` reader - Writing any value to this bit resets the bits counter and TRNG valid registers"] pub type RstBitsCounterR = crate::BitReader; #[doc = "Field `RST_BITS_COUNTER` writer - Writing any value to this bit resets the bits counter and TRNG valid registers"] pub type RstBitsCounterW<'a, REG> = crate::BitWriter<'a, REG>; impl R { #[doc = "Bit 0 - Writing any value to this bit resets the bits counter and TRNG valid registers"] #[inline(always)] pub fn rst_bits_counter(&self) -> RstBitsCounterR { RstBitsCounterR::new((self.bits & 1) != 0) } } impl W { #[doc = "Bit 0 - Writing any value to this bit resets the bits counter and TRNG valid registers"] #[inline(always)] #[must_use] pub fn rst_bits_counter(&mut self) -> RstBitsCounterW { RstBitsCounterW::new(self, 0) } } #[doc = "Reset Bits Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rst_bits_counter::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rst_bits_counter::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct RstBitsCounterSpec; impl crate::RegisterSpec for RstBitsCounterSpec { type Ux = u32; } #[doc = "`read()` method returns [`rst_bits_counter::R`](R) reader structure"] impl crate::Readable for RstBitsCounterSpec {} #[doc = "`write(|w| ..)` method takes [`rst_bits_counter::W`](W) writer structure"] impl crate::Writable for RstBitsCounterSpec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets RST_BITS_COUNTER to value 0"] impl crate::Resettable for RstBitsCounterSpec { const RESET_VALUE: u32 = 0; }