stm32h7 0.16.0

Device support crates for STM32H7 devices
Documentation
///Register `OR` reader
pub type R = crate::R<ORrs>;
///Register `OR` writer
pub type W = crate::W<ORrs>;
///Field `AFOP` reader - Selection of source for alternate function of output ports
pub type AFOP_R = crate::FieldReader<u16>;
///Field `AFOP` writer - Selection of source for alternate function of output ports
pub type AFOP_W<'a, REG> = crate::FieldWriter<'a, REG, 11, u16>;
///Field `OR` reader - Option Register
pub type OR_R = crate::FieldReader<u32>;
///Field `OR` writer - Option Register
pub type OR_W<'a, REG> = crate::FieldWriter<'a, REG, 21, u32>;
impl R {
    ///Bits 0:10 - Selection of source for alternate function of output ports
    #[inline(always)]
    pub fn afop(&self) -> AFOP_R {
        AFOP_R::new((self.bits & 0x07ff) as u16)
    }
    ///Bits 11:31 - Option Register
    #[inline(always)]
    pub fn or(&self) -> OR_R {
        OR_R::new((self.bits >> 11) & 0x001f_ffff)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("OR").field("afop", &self.afop()).field("or", &self.or()).finish()
    }
}
impl W {
    ///Bits 0:10 - Selection of source for alternate function of output ports
    #[inline(always)]
    pub fn afop(&mut self) -> AFOP_W<ORrs> {
        AFOP_W::new(self, 0)
    }
    ///Bits 11:31 - Option Register
    #[inline(always)]
    pub fn or(&mut self) -> OR_W<ORrs> {
        OR_W::new(self, 11)
    }
}
/**Comparator option register

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