gd32e2 0.9.1

Device support crate for GD32E2 devices
Documentation
#[doc = "Register `CPU_IRQ_LAT` reader"]
pub type R = crate::R<CpuIrqLatSpec>;
#[doc = "Register `CPU_IRQ_LAT` writer"]
pub type W = crate::W<CpuIrqLatSpec>;
#[doc = "Field `IRQ_LATENCY` reader - specifies the minimum number of cycles between an interrupt"]
pub type IrqLatencyR = crate::FieldReader;
#[doc = "Field `IRQ_LATENCY` writer - specifies the minimum number of cycles between an interrupt"]
pub type IrqLatencyW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    #[doc = "Bits 0:7 - specifies the minimum number of cycles between an interrupt"]
    #[inline(always)]
    pub fn irq_latency(&self) -> IrqLatencyR {
        IrqLatencyR::new((self.bits & 0xff) as u8)
    }
}
impl W {
    #[doc = "Bits 0:7 - specifies the minimum number of cycles between an interrupt"]
    #[inline(always)]
    #[must_use]
    pub fn irq_latency(&mut self) -> IrqLatencyW<CpuIrqLatSpec> {
        IrqLatencyW::new(self, 0)
    }
}
#[doc = "IRQ Latency register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpu_irq_lat::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cpu_irq_lat::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CpuIrqLatSpec;
impl crate::RegisterSpec for CpuIrqLatSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`cpu_irq_lat::R`](R) reader structure"]
impl crate::Readable for CpuIrqLatSpec {}
#[doc = "`write(|w| ..)` method takes [`cpu_irq_lat::W`](W) writer structure"]
impl crate::Writable for CpuIrqLatSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets CPU_IRQ_LAT to value 0"]
impl crate::Resettable for CpuIrqLatSpec {
    const RESET_VALUE: u32 = 0;
}