mimxrt685s_pac/trng/
pkrcnt98.rs1#[doc = "Register `PKRCNT98` reader"]
2pub type R = crate::R<Pkrcnt98Spec>;
3#[doc = "Field `PKR_8_CT` reader - Poker 8h Count"]
4pub type Pkr8CtR = crate::FieldReader<u16>;
5#[doc = "Field `PKR_9_CT` reader - Poker 9h Count"]
6pub type Pkr9CtR = crate::FieldReader<u16>;
7impl R {
8 #[doc = "Bits 0:15 - Poker 8h Count"]
9 #[inline(always)]
10 pub fn pkr_8_ct(&self) -> Pkr8CtR {
11 Pkr8CtR::new((self.bits & 0xffff) as u16)
12 }
13 #[doc = "Bits 16:31 - Poker 9h Count"]
14 #[inline(always)]
15 pub fn pkr_9_ct(&self) -> Pkr9CtR {
16 Pkr9CtR::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("PKRCNT98")
23 .field("pkr_8_ct", &self.pkr_8_ct())
24 .field("pkr_9_ct", &self.pkr_9_ct())
25 .finish()
26 }
27}
28#[doc = "Statistical Check Poker Count 9 and 8 Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pkrcnt98::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct Pkrcnt98Spec;
30impl crate::RegisterSpec for Pkrcnt98Spec {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`pkrcnt98::R`](R) reader structure"]
34impl crate::Readable for Pkrcnt98Spec {}
35#[doc = "`reset()` method sets PKRCNT98 to value 0"]
36impl crate::Resettable for Pkrcnt98Spec {
37 const RESET_VALUE: u32 = 0;
38}