mimxrt685s_pac/hashcrypt/
prng_out.rs

1#[doc = "Register `PRNG_OUT` reader"]
2pub type R = crate::R<PrngOutSpec>;
3#[doc = "Field `PRNG_OUT` reader - Random output value from the PRNG. The PRNG output is disabled and this register is set to 0x00000000 when the AES is enabled."]
4pub type PrngOutR = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - Random output value from the PRNG. The PRNG output is disabled and this register is set to 0x00000000 when the AES is enabled."]
7    #[inline(always)]
8    pub fn prng_out(&self) -> PrngOutR {
9        PrngOutR::new(self.bits)
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("PRNG_OUT")
16            .field("prng_out", &self.prng_out())
17            .finish()
18    }
19}
20#[doc = "PRNG software-accessable random output value\n\nYou can [`read`](crate::Reg::read) this register and get [`prng_out::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct PrngOutSpec;
22impl crate::RegisterSpec for PrngOutSpec {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`prng_out::R`](R) reader structure"]
26impl crate::Readable for PrngOutSpec {}
27#[doc = "`reset()` method sets PRNG_OUT to value 0"]
28impl crate::Resettable for PrngOutSpec {
29    const RESET_VALUE: u32 = 0;
30}