mcxa_pac/trng0/
pkrcntfe.rs

1#[doc = "Register `PKRCNTFE` reader"]
2pub type R = crate::R<PkrcntfeSpec>;
3#[doc = "Field `PKR_E_CT` reader - Poker Eh Count"]
4pub type PkrECtR = crate::FieldReader<u16>;
5#[doc = "Field `PKR_F_CT` reader - Poker Fh Count"]
6pub type PkrFCtR = crate::FieldReader<u16>;
7impl R {
8    #[doc = "Bits 0:15 - Poker Eh Count"]
9    #[inline(always)]
10    pub fn pkr_e_ct(&self) -> PkrECtR {
11        PkrECtR::new((self.bits & 0xffff) as u16)
12    }
13    #[doc = "Bits 16:31 - Poker Fh Count"]
14    #[inline(always)]
15    pub fn pkr_f_ct(&self) -> PkrFCtR {
16        PkrFCtR::new(((self.bits >> 16) & 0xffff) 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("PKRCNTFE")
23            .field("pkr_e_ct", &self.pkr_e_ct())
24            .field("pkr_f_ct", &self.pkr_f_ct())
25            .finish()
26    }
27}
28#[doc = "Statistical Check Poker Count F and E Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pkrcntfe::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct PkrcntfeSpec;
30impl crate::RegisterSpec for PkrcntfeSpec {
31    type Ux = u32;
32}
33#[doc = "`read()` method returns [`pkrcntfe::R`](R) reader structure"]
34impl crate::Readable for PkrcntfeSpec {}
35#[doc = "`reset()` method sets PKRCNTFE to value 0"]
36impl crate::Resettable for PkrcntfeSpec {}