mimxrt685s_pac/puf/
keyoutindex.rs1#[doc = "Register `KEYOUTINDEX` reader"]
2pub type R = crate::R<KeyoutindexSpec>;
3#[doc = "Field `KEYOUTIDX` reader - Key Output Index"]
4pub type KeyoutidxR = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:3 - Key Output Index"]
7 #[inline(always)]
8 pub fn keyoutidx(&self) -> KeyoutidxR {
9 KeyoutidxR::new((self.bits & 0x0f) as u8)
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("KEYOUTINDEX")
16 .field("keyoutidx", &self.keyoutidx())
17 .finish()
18 }
19}
20#[doc = "PUF Key Output Index\n\nYou can [`read`](crate::Reg::read) this register and get [`keyoutindex::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct KeyoutindexSpec;
22impl crate::RegisterSpec for KeyoutindexSpec {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`keyoutindex::R`](R) reader structure"]
26impl crate::Readable for KeyoutindexSpec {}
27#[doc = "`reset()` method sets KEYOUTINDEX to value 0"]
28impl crate::Resettable for KeyoutindexSpec {
29 const RESET_VALUE: u32 = 0;
30}