gd32f4pac 0.9.2

Device support crate for GD32F4 devices
Documentation
#[doc = "Register `HCTL` reader"]
pub type R = crate::R<HctlSpec>;
#[doc = "Register `HCTL` writer"]
pub type W = crate::W<HctlSpec>;
#[doc = "Field `SPDFSLS` reader - Speed limited to FS and LS"]
pub type SpdfslsR = crate::BitReader;
#[doc = "Field `SPDFSLS` writer - Speed limited to FS and LS"]
pub type SpdfslsW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 2 - Speed limited to FS and LS"]
    #[inline(always)]
    pub fn spdfsls(&self) -> SpdfslsR {
        SpdfslsR::new(((self.bits >> 2) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 2 - Speed limited to FS and LS"]
    #[inline(always)]
    pub fn spdfsls(&mut self) -> SpdfslsW<HctlSpec> {
        SpdfslsW::new(self, 2)
    }
}
#[doc = "host control register (HCTL)\n\nYou can [`read`](crate::Reg::read) this register and get [`hctl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hctl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct HctlSpec;
impl crate::RegisterSpec for HctlSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`hctl::R`](R) reader structure"]
impl crate::Readable for HctlSpec {}
#[doc = "`write(|w| ..)` method takes [`hctl::W`](W) writer structure"]
impl crate::Writable for HctlSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets HCTL to value 0"]
impl crate::Resettable for HctlSpec {}