mcxa_pac/trng0/
pkrsq.rs

1#[doc = "Register `PKRSQ` reader"]
2pub type R = crate::R<PkrsqSpec>;
3#[doc = "Field `PKR_SQ` reader - Poker Square Calculation Result."]
4pub type PkrSqR = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:23 - Poker Square Calculation Result."]
7    #[inline(always)]
8    pub fn pkr_sq(&self) -> PkrSqR {
9        PkrSqR::new(self.bits & 0x00ff_ffff)
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("PKRSQ").field("pkr_sq", &self.pkr_sq()).finish()
16    }
17}
18#[doc = "Poker Square Calculation Result Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pkrsq::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct PkrsqSpec;
20impl crate::RegisterSpec for PkrsqSpec {
21    type Ux = u32;
22}
23#[doc = "`read()` method returns [`pkrsq::R`](R) reader structure"]
24impl crate::Readable for PkrsqSpec {}
25#[doc = "`reset()` method sets PKRSQ to value 0"]
26impl crate::Resettable for PkrsqSpec {}