stm32g0 0.16.0

Device support crates for STM32G0 devices
Documentation
///Register `KEYR2` reader
pub type R = crate::R<KEYR2rs>;
///Register `KEYR2` writer
pub type W = crate::W<KEYR2rs>;
///Field `KEY` reader - AES key register (key \[95:64\])
pub type KEY_R = crate::FieldReader<u32>;
///Field `KEY` writer - AES key register (key \[95:64\])
pub type KEY_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
impl R {
    ///Bits 0:31 - AES key register (key \[95:64\])
    #[inline(always)]
    pub fn key(&self) -> KEY_R {
        KEY_R::new(self.bits)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("KEYR2").field("key", &self.key()).finish()
    }
}
impl W {
    ///Bits 0:31 - AES key register (key \[95:64\])
    #[inline(always)]
    pub fn key(&mut self) -> KEY_W<KEYR2rs> {
        KEY_W::new(self, 0)
    }
}
/**key register 2

You can [`read`](crate::Reg::read) this register and get [`keyr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G081.html#AES:KEYR2)*/
pub struct KEYR2rs;
impl crate::RegisterSpec for KEYR2rs {
    type Ux = u32;
}
///`read()` method returns [`keyr2::R`](R) reader structure
impl crate::Readable for KEYR2rs {}
///`write(|w| ..)` method takes [`keyr2::W`](W) writer structure
impl crate::Writable for KEYR2rs {
    type Safety = crate::Safe;
}
///`reset()` method sets KEYR2 to value 0
impl crate::Resettable for KEYR2rs {}