stm32h7 0.16.0

Device support crates for STM32H7 devices
Documentation
///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 Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4. Other: Writes to SBS_DBGCR ignored Note: 0xC3 is the recommended value to lock the debug configuration using this bitfield.
pub type DBGCFG_LOCK_R = crate::FieldReader;
///Field `DBGCFG_LOCK` writer - debug configuration lock Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4. Other: Writes to SBS_DBGCR ignored Note: 0xC3 is the recommended value to lock the debug configuration using this bitfield.
pub type DBGCFG_LOCK_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    ///Bits 0:7 - debug configuration lock Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4. Other: Writes to SBS_DBGCR ignored Note: 0xC3 is the recommended value to lock the debug configuration using this bitfield.
    #[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 Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4. Other: Writes to SBS_DBGCR ignored Note: 0xC3 is the recommended value to lock the debug configuration using this bitfield.
    #[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;
}
///`reset()` method sets DBGLOCKR to value 0xb4
impl crate::Resettable for DBGLOCKRrs {
    const RESET_VALUE: u32 = 0xb4;
}