mcxa_pac/edma_0_tcd0/tcd/
tcd_dlast_sga.rs1#[doc = "Register `TCD_DLAST_SGA` reader"]
2pub type R = crate::R<TcdDlastSgaSpec>;
3#[doc = "Register `TCD_DLAST_SGA` writer"]
4pub type W = crate::W<TcdDlastSgaSpec>;
5#[doc = "Field `DLAST_SGA` reader - Last Destination Address Adjustment / Scatter Gather Address"]
6pub type DlastSgaR = crate::FieldReader<u32>;
7#[doc = "Field `DLAST_SGA` writer - Last Destination Address Adjustment / Scatter Gather Address"]
8pub type DlastSgaW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 #[doc = "Bits 0:31 - Last Destination Address Adjustment / Scatter Gather Address"]
11 #[inline(always)]
12 pub fn dlast_sga(&self) -> DlastSgaR {
13 DlastSgaR::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_DLAST_SGA")
20 .field("dlast_sga", &self.dlast_sga())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 0:31 - Last Destination Address Adjustment / Scatter Gather Address"]
26 #[inline(always)]
27 pub fn dlast_sga(&mut self) -> DlastSgaW<'_, TcdDlastSgaSpec> {
28 DlastSgaW::new(self, 0)
29 }
30}
31#[doc = "TCD Last Destination Address Adjustment / Scatter Gather Address\n\nYou can [`read`](crate::Reg::read) this register and get [`tcd_dlast_sga::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tcd_dlast_sga::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct TcdDlastSgaSpec;
33impl crate::RegisterSpec for TcdDlastSgaSpec {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`tcd_dlast_sga::R`](R) reader structure"]
37impl crate::Readable for TcdDlastSgaSpec {}
38#[doc = "`write(|w| ..)` method takes [`tcd_dlast_sga::W`](W) writer structure"]
39impl crate::Writable for TcdDlastSgaSpec {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets TCD_DLAST_SGA to value 0"]
43impl crate::Resettable for TcdDlastSgaSpec {}