///Register `DBGLOCKR` reader
pub type R = crate::R<DBGLOCKRrs>;
///Register `DBGLOCKR` writer
pub type W = crate::W<DBGLOCKRrs>;
///Field `DBGCFG_LOCK` reader - debug configuration lock
pub type DBGCFG_LOCK_R = crate::FieldReader;
///Field `DBGCFG_LOCK` writer - debug configuration lock
pub type DBGCFG_LOCK_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    ///Bits 0:7 - debug configuration lock
    #[inline(always)]
    pub fn dbgcfg_lock(&self) -> DBGCFG_LOCK_R {
        DBGCFG_LOCK_R::new((self.bits & 0xff) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("DBGLOCKR").field("dbgcfg_lock", &self.dbgcfg_lock()).finish()
    }
}
impl W {
    ///Bits 0:7 - debug configuration lock
    #[inline(always)]
    pub fn dbgcfg_lock(&mut self) -> DBGCFG_LOCK_W<DBGLOCKRrs> {
        DBGCFG_LOCK_W::new(self, 0)
    }
}
/**SBS debug lock register

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