mcxa_pac/edma_0_tcd0/tcd/
tcd_slast_sda.rs1#[doc = "Register `TCD_SLAST_SDA` reader"]
2pub type R = crate::R<TcdSlastSdaSpec>;
3#[doc = "Register `TCD_SLAST_SDA` writer"]
4pub type W = crate::W<TcdSlastSdaSpec>;
5#[doc = "Field `SLAST_SDA` reader - Last Source Address Adjustment / Store DADDR Address"]
6pub type SlastSdaR = crate::FieldReader<u32>;
7#[doc = "Field `SLAST_SDA` writer - Last Source Address Adjustment / Store DADDR Address"]
8pub type SlastSdaW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 #[doc = "Bits 0:31 - Last Source Address Adjustment / Store DADDR Address"]
11 #[inline(always)]
12 pub fn slast_sda(&self) -> SlastSdaR {
13 SlastSdaR::new(self.bits)
14 }
15}
16#[cfg(feature = "debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("TCD_SLAST_SDA")
20 .field("slast_sda", &self.slast_sda())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 0:31 - Last Source Address Adjustment / Store DADDR Address"]
26 #[inline(always)]
27 pub fn slast_sda(&mut self) -> SlastSdaW<'_, TcdSlastSdaSpec> {
28 SlastSdaW::new(self, 0)
29 }
30}
31#[doc = "TCD Last Source Address Adjustment / Store DADDR Address\n\nYou can [`read`](crate::Reg::read) this register and get [`tcd_slast_sda::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tcd_slast_sda::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct TcdSlastSdaSpec;
33impl crate::RegisterSpec for TcdSlastSdaSpec {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`tcd_slast_sda::R`](R) reader structure"]
37impl crate::Readable for TcdSlastSdaSpec {}
38#[doc = "`write(|w| ..)` method takes [`tcd_slast_sda::W`](W) writer structure"]
39impl crate::Writable for TcdSlastSdaSpec {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets TCD_SLAST_SDA to value 0"]
43impl crate::Resettable for TcdSlastSdaSpec {}