efm32pg1b_pac/ldma/ch/src.rs
1///Register `SRC` reader
2pub type R = crate::R<SRCrs>;
3///Register `SRC` writer
4pub type W = crate::W<SRCrs>;
5///Field `SRCADDR` reader - Source Data Address
6pub type SrcaddrR = crate::FieldReader<u32>;
7///Field `SRCADDR` writer - Source Data Address
8pub type SrcaddrW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 ///Bits 0:31 - Source Data Address
11 #[inline(always)]
12 pub fn srcaddr(&self) -> SrcaddrR {
13 SrcaddrR::new(self.bits)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("SRC")
19 .field("srcaddr", &self.srcaddr())
20 .finish()
21 }
22}
23impl W {
24 ///Bits 0:31 - Source Data Address
25 #[inline(always)]
26 pub fn srcaddr(&mut self) -> SrcaddrW<'_, SRCrs> {
27 SrcaddrW::new(self, 0)
28 }
29}
30///Channel Descriptor Source Data Address Register
31///
32///You can [`read`](crate::Reg::read) this register and get [`src::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`src::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
33pub struct SRCrs;
34impl crate::RegisterSpec for SRCrs {
35 type Ux = u32;
36}
37///`read()` method returns [`src::R`](R) reader structure
38impl crate::Readable for SRCrs {}
39///`write(|w| ..)` method takes [`src::W`](W) writer structure
40impl crate::Writable for SRCrs {
41 type Safety = crate::Unsafe;
42}
43///`reset()` method sets SRC to value 0
44impl crate::Resettable for SRCrs {}