#[doc = "Register `SETUP1` reader"] pub type R = crate::R<Setup1Spec>; #[doc = "Register `SETUP1` writer"] pub type W = crate::W<Setup1Spec>; #[doc = "Field `NWE_SETUP` reader - NWE Setup Length"] pub type NweSetupR = crate::FieldReader; #[doc = "Field `NWE_SETUP` writer - NWE Setup Length"] pub type NweSetupW<'a, REG> = crate::FieldWriter<'a, REG, 6>; #[doc = "Field `NCS_WR_SETUP` reader - NCS Setup Length in Write Access"] pub type NcsWrSetupR = crate::FieldReader; #[doc = "Field `NCS_WR_SETUP` writer - NCS Setup Length in Write Access"] pub type NcsWrSetupW<'a, REG> = crate::FieldWriter<'a, REG, 6>; #[doc = "Field `NRD_SETUP` reader - NRD Setup Length"] pub type NrdSetupR = crate::FieldReader; #[doc = "Field `NRD_SETUP` writer - NRD Setup Length"] pub type NrdSetupW<'a, REG> = crate::FieldWriter<'a, REG, 6>; #[doc = "Field `NCS_RD_SETUP` reader - NCS Setup Length in Read Access"] pub type NcsRdSetupR = crate::FieldReader; #[doc = "Field `NCS_RD_SETUP` writer - NCS Setup Length in Read Access"] pub type NcsRdSetupW<'a, REG> = crate::FieldWriter<'a, REG, 6>; impl R { #[doc = "Bits 0:5 - NWE Setup Length"] #[inline(always)] pub fn nwe_setup(&self) -> NweSetupR { NweSetupR::new((self.bits & 0x3f) as u8) } #[doc = "Bits 8:13 - NCS Setup Length in Write Access"] #[inline(always)] pub fn ncs_wr_setup(&self) -> NcsWrSetupR { NcsWrSetupR::new(((self.bits >> 8) & 0x3f) as u8) } #[doc = "Bits 16:21 - NRD Setup Length"] #[inline(always)] pub fn nrd_setup(&self) -> NrdSetupR { NrdSetupR::new(((self.bits >> 16) & 0x3f) as u8) } #[doc = "Bits 24:29 - NCS Setup Length in Read Access"] #[inline(always)] pub fn ncs_rd_setup(&self) -> NcsRdSetupR { NcsRdSetupR::new(((self.bits >> 24) & 0x3f) as u8) } } impl W { #[doc = "Bits 0:5 - NWE Setup Length"] #[inline(always)] #[must_use] pub fn nwe_setup(&mut self) -> NweSetupW<Setup1Spec> { NweSetupW::new(self, 0) } #[doc = "Bits 8:13 - NCS Setup Length in Write Access"] #[inline(always)] #[must_use] pub fn ncs_wr_setup(&mut self) -> NcsWrSetupW<Setup1Spec> { NcsWrSetupW::new(self, 8) } #[doc = "Bits 16:21 - NRD Setup Length"] #[inline(always)] #[must_use] pub fn nrd_setup(&mut self) -> NrdSetupW<Setup1Spec> { NrdSetupW::new(self, 16) } #[doc = "Bits 24:29 - NCS Setup Length in Read Access"] #[inline(always)] #[must_use] pub fn ncs_rd_setup(&mut self) -> NcsRdSetupW<Setup1Spec> { NcsRdSetupW::new(self, 24) } } #[doc = "SMC Setup Register (CS_number = 1)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`setup1::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`setup1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Setup1Spec; impl crate::RegisterSpec for Setup1Spec { type Ux = u32; } #[doc = "`read()` method returns [`setup1::R`](R) reader structure"] impl crate::Readable for Setup1Spec {} #[doc = "`write(|w| ..)` method takes [`setup1::W`](W) writer structure"] impl crate::Writable for Setup1Spec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets SETUP1 to value 0x0101_0101"] impl crate::Resettable for Setup1Spec { const RESET_VALUE: u32 = 0x0101_0101; }