mcxa-pac 0.3.0

Peripheral Access Crate for MCXA256 devices
Documentation
#[doc = "Register `TCD_DOFF` reader"]
pub type R = crate::R<TcdDoffSpec>;
#[doc = "Register `TCD_DOFF` writer"]
pub type W = crate::W<TcdDoffSpec>;
#[doc = "Field `DOFF` reader - Destination Address Signed Offset"]
pub type DoffR = crate::FieldReader<u16>;
#[doc = "Field `DOFF` writer - Destination Address Signed Offset"]
pub type DoffW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    #[doc = "Bits 0:15 - Destination Address Signed Offset"]
    #[inline(always)]
    pub fn doff(&self) -> DoffR {
        DoffR::new(self.bits)
    }
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("TCD_DOFF").field("doff", &self.doff()).finish()
    }
}
impl W {
    #[doc = "Bits 0:15 - Destination Address Signed Offset"]
    #[inline(always)]
    pub fn doff(&mut self) -> DoffW<'_, TcdDoffSpec> {
        DoffW::new(self, 0)
    }
}
#[doc = "TCD Signed Destination Address Offset\n\nYou can [`read`](crate::Reg::read) this register and get [`tcd_doff::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tcd_doff::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TcdDoffSpec;
impl crate::RegisterSpec for TcdDoffSpec {
    type Ux = u16;
}
#[doc = "`read()` method returns [`tcd_doff::R`](R) reader structure"]
impl crate::Readable for TcdDoffSpec {}
#[doc = "`write(|w| ..)` method takes [`tcd_doff::W`](W) writer structure"]
impl crate::Writable for TcdDoffSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets TCD_DOFF to value 0"]
impl crate::Resettable for TcdDoffSpec {}