#[doc = "Register `DMASEL3` reader"] pub type R = crate::R; #[doc = "Register `DMASEL3` writer"] pub type W = crate::W; #[doc = "Field `DMASEL` reader - DMA trigger source selection value"] pub type DmaselR = crate::FieldReader; #[doc = "Field `DMASEL` writer - DMA trigger source selection value"] pub type DmaselW<'a, REG> = crate::FieldWriter<'a, REG, 7>; impl R { #[doc = "Bits 0:6 - DMA trigger source selection value"] #[inline(always)] pub fn dmasel(&self) -> DmaselR { DmaselR::new((self.bits & 0x7f) as u8) } } impl W { #[doc = "Bits 0:6 - DMA trigger source selection value"] #[inline(always)] #[must_use] pub fn dmasel(&mut self) -> DmaselW { DmaselW::new(self, 0) } } #[doc = "Interrupt select for DMA channel 3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmasel3::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 [`dmasel3::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dmasel3Spec; impl crate::RegisterSpec for Dmasel3Spec { type Ux = u32; } #[doc = "`read()` method returns [`dmasel3::R`](R) reader structure"] impl crate::Readable for Dmasel3Spec {} #[doc = "`write(|w| ..)` method takes [`dmasel3::W`](W) writer structure"] impl crate::Writable for Dmasel3Spec { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets DMASEL3 to value 0x7f"] impl crate::Resettable for Dmasel3Spec { const RESET_VALUE: u32 = 0x7f; }