gd32f4pac 0.9.2

Device support crate for GD32F4 devices
Documentation
#[doc = "Register `IPA_FLOFF` reader"]
pub type R = crate::R<IpaFloffSpec>;
#[doc = "Register `IPA_FLOFF` writer"]
pub type W = crate::W<IpaFloffSpec>;
#[doc = "Field `FLOFF` reader - Foreground line offset"]
pub type FloffR = crate::FieldReader<u16>;
#[doc = "Field `FLOFF` writer - Foreground line offset"]
pub type FloffW<'a, REG> = crate::FieldWriter<'a, REG, 14, u16>;
impl R {
    #[doc = "Bits 0:13 - Foreground line offset"]
    #[inline(always)]
    pub fn floff(&self) -> FloffR {
        FloffR::new((self.bits & 0x3fff) as u16)
    }
}
impl W {
    #[doc = "Bits 0:13 - Foreground line offset"]
    #[inline(always)]
    pub fn floff(&mut self) -> FloffW<IpaFloffSpec> {
        FloffW::new(self, 0)
    }
}
#[doc = "Foreground line offset register\n\nYou can [`read`](crate::Reg::read) this register and get [`ipa_floff::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ipa_floff::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IpaFloffSpec;
impl crate::RegisterSpec for IpaFloffSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ipa_floff::R`](R) reader structure"]
impl crate::Readable for IpaFloffSpec {}
#[doc = "`write(|w| ..)` method takes [`ipa_floff::W`](W) writer structure"]
impl crate::Writable for IpaFloffSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets IPA_FLOFF to value 0"]
impl crate::Resettable for IpaFloffSpec {}