Skip to main content

mcxa_pac/trng0/
scmc.rs

1#[doc = "Register `SCMC` reader"]
2pub type R = crate::R<ScmcSpec>;
3#[doc = "Field `MONO_CT` reader - Monobit Count"]
4pub type MonoCtR = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:15 - Monobit Count"]
7    #[inline(always)]
8    pub fn mono_ct(&self) -> MonoCtR {
9        MonoCtR::new((self.bits & 0xffff) as u16)
10    }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("SCMC").field("mono_ct", &self.mono_ct()).finish()
16    }
17}
18#[doc = "Statistical Check Monobit Count Register\n\nYou can [`read`](crate::Reg::read) this register and get [`scmc::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct ScmcSpec;
20impl crate::RegisterSpec for ScmcSpec {
21    type Ux = u32;
22}
23#[doc = "`read()` method returns [`scmc::R`](R) reader structure"]
24impl crate::Readable for ScmcSpec {}
25#[doc = "`reset()` method sets SCMC to value 0"]
26impl crate::Resettable for ScmcSpec {}