awr2544_pac/rss_tpcc_a/
src.rs1#[doc = "Register `SRC` reader"]
2pub type R = crate::R<SrcSpec>;
3#[doc = "Register `SRC` writer"]
4pub type W = crate::W<SrcSpec>;
5#[doc = "Field `SRC` reader - 31:0\\]
6Source Address: The 32-bit source address parameters specify the starting byte address of the source . If SAM is set to FIFO mode then the user should program the Source address to be aligned to the value specified by the OPT.FWID field. No errors are recognized here but TC will assert error if this is not true."]
7pub type SrcR = crate::FieldReader<u32>;
8#[doc = "Field `SRC` writer - 31:0\\]
9Source Address: The 32-bit source address parameters specify the starting byte address of the source . If SAM is set to FIFO mode then the user should program the Source address to be aligned to the value specified by the OPT.FWID field. No errors are recognized here but TC will assert error if this is not true."]
10pub type SrcW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
11impl R {
12 #[doc = "Bits 0:31 - 31:0\\]
13Source Address: The 32-bit source address parameters specify the starting byte address of the source . If SAM is set to FIFO mode then the user should program the Source address to be aligned to the value specified by the OPT.FWID field. No errors are recognized here but TC will assert error if this is not true."]
14 #[inline(always)]
15 pub fn src(&self) -> SrcR {
16 SrcR::new(self.bits)
17 }
18}
19impl W {
20 #[doc = "Bits 0:31 - 31:0\\]
21Source Address: The 32-bit source address parameters specify the starting byte address of the source . If SAM is set to FIFO mode then the user should program the Source address to be aligned to the value specified by the OPT.FWID field. No errors are recognized here but TC will assert error if this is not true."]
22 #[inline(always)]
23 #[must_use]
24 pub fn src(&mut self) -> SrcW<SrcSpec> {
25 SrcW::new(self, 0)
26 }
27}
28#[doc = "Source Address\n\nYou 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)."]
29pub struct SrcSpec;
30impl crate::RegisterSpec for SrcSpec {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`src::R`](R) reader structure"]
34impl crate::Readable for SrcSpec {}
35#[doc = "`write(|w| ..)` method takes [`src::W`](W) writer structure"]
36impl crate::Writable for SrcSpec {
37 type Safety = crate::Unsafe;
38 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
39 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
40}
41#[doc = "`reset()` method sets SRC to value 0"]
42impl crate::Resettable for SrcSpec {
43 const RESET_VALUE: u32 = 0;
44}