max78000_pac/trng/
data.rs

1#[doc = "Register `DATA` reader"]
2pub type R = crate::R<DataSpec>;
3#[doc = "Field `DATA` reader - Data. The content of this register is valid only when RNG_IS =1. When TNRG is disabled, read returns 0x0000 0000."]
4pub type DataR = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - Data. The content of this register is valid only when RNG_IS =1. When TNRG is disabled, read returns 0x0000 0000."]
7    #[inline(always)]
8    pub fn data(&self) -> DataR {
9        DataR::new(self.bits)
10    }
11}
12#[doc = "Data. The content of this register is valid only when RNG_IS = 1. When TRNG is disabled, read returns 0x0000 0000.\n\nYou can [`read`](crate::Reg::read) this register and get [`data::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct DataSpec;
14impl crate::RegisterSpec for DataSpec {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`data::R`](R) reader structure"]
18impl crate::Readable for DataSpec {}
19#[doc = "`reset()` method sets DATA to value 0"]
20impl crate::Resettable for DataSpec {
21    const RESET_VALUE: u32 = 0;
22}