stm32g4-staging 0.22.0

Device support crates for STM32G4 devices
Documentation
///Register `TOCV` reader
pub type R = crate::R<TOCVrs>;
///Register `TOCV` writer
pub type W = crate::W<TOCVrs>;
///Field `TOC` reader - Timeout counter
pub type TOC_R = crate::FieldReader<u16>;
///Field `TOC` writer - Timeout counter
pub type TOC_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    ///Bits 0:15 - Timeout counter
    #[inline(always)]
    pub fn toc(&self) -> TOC_R {
        TOC_R::new((self.bits & 0xffff) as u16)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("TOCV").field("toc", &self.toc()).finish()
    }
}
impl W {
    ///Bits 0:15 - Timeout counter
    #[inline(always)]
    pub fn toc(&mut self) -> TOC_W<TOCVrs> {
        TOC_W::new(self, 0)
    }
}
/**FDCAN timeout counter value register

You can [`read`](crate::Reg::read) this register and get [`tocv::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tocv::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/STM32G441.html#FDCAN:TOCV)*/
pub struct TOCVrs;
impl crate::RegisterSpec for TOCVrs {
    type Ux = u32;
}
///`read()` method returns [`tocv::R`](R) reader structure
impl crate::Readable for TOCVrs {}
///`write(|w| ..)` method takes [`tocv::W`](W) writer structure
impl crate::Writable for TOCVrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets TOCV to value 0xffff
impl crate::Resettable for TOCVrs {
    const RESET_VALUE: u32 = 0xffff;
}