awr2544-pac 0.1.0

A Peripheral Access Crate for the ti awr2544 radar devkit
Documentation
#[doc = "Register `CRC_WDTOPLD2` reader"]
pub type R = crate::R<CrcWdtopld2Spec>;
#[doc = "Register `CRC_WDTOPLD2` writer"]
pub type W = crate::W<CrcWdtopld2Spec>;
#[doc = "Field `CRC_WDTOPLD2` reader - 23:0\\]
Channel 2 Watchdog Timeout Counter Preload Register. This register contains the number of clock cycles within which the DMA must transfer the next block of data patterns."]
pub type CrcWdtopld2R = crate::FieldReader<u32>;
#[doc = "Field `CRC_WDTOPLD2` writer - 23:0\\]
Channel 2 Watchdog Timeout Counter Preload Register. This register contains the number of clock cycles within which the DMA must transfer the next block of data patterns."]
pub type CrcWdtopld2W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
#[doc = "Field `Reserved1` reader - 31:24\\]
Reserved"]
pub type Reserved1R = crate::FieldReader;
#[doc = "Field `Reserved1` writer - 31:24\\]
Reserved"]
pub type Reserved1W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    #[doc = "Bits 0:23 - 23:0\\]
Channel 2 Watchdog Timeout Counter Preload Register. This register contains the number of clock cycles within which the DMA must transfer the next block of data patterns."]
    #[inline(always)]
    pub fn crc_wdtopld2(&self) -> CrcWdtopld2R {
        CrcWdtopld2R::new(self.bits & 0x00ff_ffff)
    }
    #[doc = "Bits 24:31 - 31:24\\]
Reserved"]
    #[inline(always)]
    pub fn reserved1(&self) -> Reserved1R {
        Reserved1R::new(((self.bits >> 24) & 0xff) as u8)
    }
}
impl W {
    #[doc = "Bits 0:23 - 23:0\\]
Channel 2 Watchdog Timeout Counter Preload Register. This register contains the number of clock cycles within which the DMA must transfer the next block of data patterns."]
    #[inline(always)]
    #[must_use]
    pub fn crc_wdtopld2(&mut self) -> CrcWdtopld2W<CrcWdtopld2Spec> {
        CrcWdtopld2W::new(self, 0)
    }
    #[doc = "Bits 24:31 - 31:24\\]
Reserved"]
    #[inline(always)]
    #[must_use]
    pub fn reserved1(&mut self) -> Reserved1W<CrcWdtopld2Spec> {
        Reserved1W::new(self, 24)
    }
}
#[doc = "Channel 2 timeout pre-load value to check if within a given time DMA initiates a block transfer\n\nYou can [`read`](crate::Reg::read) this register and get [`crc_wdtopld2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crc_wdtopld2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CrcWdtopld2Spec;
impl crate::RegisterSpec for CrcWdtopld2Spec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`crc_wdtopld2::R`](R) reader structure"]
impl crate::Readable for CrcWdtopld2Spec {}
#[doc = "`write(|w| ..)` method takes [`crc_wdtopld2::W`](W) writer structure"]
impl crate::Writable for CrcWdtopld2Spec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets CRC_WDTOPLD2 to value 0"]
impl crate::Resettable for CrcWdtopld2Spec {
    const RESET_VALUE: u32 = 0;
}