1#[doc = "Register `SCR3C` reader"]
2pub type R = crate::R<Scr3cSpec>;
3#[doc = "Field `R3_0_CT` reader - Runs of Zeroes, Length 3 Count"]
4pub type R3_0CtR = crate::FieldReader<u16>;
5#[doc = "Field `R3_1_CT` reader - Runs of Ones, Length 3 Count"]
6pub type R3_1CtR = crate::FieldReader<u16>;
7impl R {
8 #[doc = "Bits 0:12 - Runs of Zeroes, Length 3 Count"]
9 #[inline(always)]
10 pub fn r3_0_ct(&self) -> R3_0CtR {
11 R3_0CtR::new((self.bits & 0x1fff) as u16)
12 }
13 #[doc = "Bits 16:28 - Runs of Ones, Length 3 Count"]
14 #[inline(always)]
15 pub fn r3_1_ct(&self) -> R3_1CtR {
16 R3_1CtR::new(((self.bits >> 16) & 0x1fff) as u16)
17 }
18}
19#[cfg(feature = "debug")]
20impl core::fmt::Debug for R {
21 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22 f.debug_struct("SCR3C")
23 .field("r3_0_ct", &self.r3_0_ct())
24 .field("r3_1_ct", &self.r3_1_ct())
25 .finish()
26 }
27}
28#[doc = "Statistical Check Run Length 3 Count Register\n\nYou can [`read`](crate::Reg::read) this register and get [`scr3c::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct Scr3cSpec;
30impl crate::RegisterSpec for Scr3cSpec {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`scr3c::R`](R) reader structure"]
34impl crate::Readable for Scr3cSpec {}
35#[doc = "`reset()` method sets SCR3C to value 0"]
36impl crate::Resettable for Scr3cSpec {}