///Register `CMDRSADDRR` reader
pub type R = crate::R<CMDRSADDRRrs>;
///Register `CMDRSADDRR` writer
pub type W = crate::W<CMDRSADDRRrs>;
///Field `CMDSTARTADDR` reader - start address of range to which the cache maintenance command specified in DCACHE_CR.CACHECMD field applies This register must be set before DCACHE_CR.CACHECMD is written. .
pub type CMDSTARTADDR_R = crate::FieldReader<u32>;
///Field `CMDSTARTADDR` writer - start address of range to which the cache maintenance command specified in DCACHE_CR.CACHECMD field applies This register must be set before DCACHE_CR.CACHECMD is written. .
pub type CMDSTARTADDR_W<'a, REG> = crate::FieldWriter<'a, REG, 28, u32>;
impl R {
    ///Bits 4:31 - start address of range to which the cache maintenance command specified in DCACHE_CR.CACHECMD field applies This register must be set before DCACHE_CR.CACHECMD is written. .
    #[inline(always)]
    pub fn cmdstartaddr(&self) -> CMDSTARTADDR_R {
        CMDSTARTADDR_R::new((self.bits >> 4) & 0x0fff_ffff)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CMDRSADDRR").field("cmdstartaddr", &self.cmdstartaddr()).finish()
    }
}
impl W {
    ///Bits 4:31 - start address of range to which the cache maintenance command specified in DCACHE_CR.CACHECMD field applies This register must be set before DCACHE_CR.CACHECMD is written. .
    #[inline(always)]
    pub fn cmdstartaddr(&mut self) -> CMDSTARTADDR_W<CMDRSADDRRrs> {
        CMDSTARTADDR_W::new(self, 4)
    }
}
/**DCACHE command range start address register

You can [`read`](crate::Reg::read) this register and get [`cmdrsaddrr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmdrsaddrr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct CMDRSADDRRrs;
impl crate::RegisterSpec for CMDRSADDRRrs {
    type Ux = u32;
}
///`read()` method returns [`cmdrsaddrr::R`](R) reader structure
impl crate::Readable for CMDRSADDRRrs {}
///`write(|w| ..)` method takes [`cmdrsaddrr::W`](W) writer structure
impl crate::Writable for CMDRSADDRRrs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets CMDRSADDRR to value 0
impl crate::Resettable for CMDRSADDRRrs {
    const RESET_VALUE: u32 = 0;
}
