mcxa_pac/sgi0/
sgi_key_wrap.rs1#[doc = "Register `sgi_key_wrap` reader"]
2pub type R = crate::R<SgiKeyWrapSpec>;
3#[doc = "Field `kw_data` reader - Field contains wrapped key, auto-updated by HW for each word"]
4pub type KwDataR = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - Field contains wrapped key, auto-updated by HW for each word"]
7 #[inline(always)]
8 pub fn kw_data(&self) -> KwDataR {
9 KwDataR::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("sgi_key_wrap")
16 .field("kw_data", &self.kw_data())
17 .finish()
18 }
19}
20#[doc = "Wrapped key read SFR\n\nYou can [`read`](crate::Reg::read) this register and get [`sgi_key_wrap::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct SgiKeyWrapSpec;
22impl crate::RegisterSpec for SgiKeyWrapSpec {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`sgi_key_wrap::R`](R) reader structure"]
26impl crate::Readable for SgiKeyWrapSpec {}
27#[doc = "`reset()` method sets sgi_key_wrap to value 0"]
28impl crate::Resettable for SgiKeyWrapSpec {}