///Register `CMDREADDRR` reader
pub type R = crate::R<CMDREADDRRrs>;
///Register `CMDREADDRR` writer
pub type W = crate::W<CMDREADDRRrs>;
///Field `CMDENDADDR` reader - end 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 CMDENDADDR_R = crate::FieldReader<u32>;
///Field `CMDENDADDR` writer - end 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 CMDENDADDR_W<'a, REG> = crate::FieldWriter<'a, REG, 28, u32>;
impl R {
    ///Bits 4:31 - end 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 cmdendaddr(&self) -> CMDENDADDR_R {
        CMDENDADDR_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("CMDREADDRR").field("cmdendaddr", &self.cmdendaddr()).finish()
    }
}
impl W {
    ///Bits 4:31 - end 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 cmdendaddr(&mut self) -> CMDENDADDR_W<CMDREADDRRrs> {
        CMDENDADDR_W::new(self, 4)
    }
}
/**DCACHE command range end address register

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