gd32f1 0.9.2

Device support crate for GD32F1 devices
Documentation
#[doc = "Register `STATC` reader"]
pub type R = crate::R<StatcSpec>;
#[doc = "Register `STATC` writer"]
pub type W = crate::W<StatcSpec>;
#[doc = "Field `SOFC` reader - Start of frame flag clear"]
pub type SofcR = crate::BitReader;
#[doc = "Field `SOFC` writer - Start of frame flag clear"]
pub type SofcW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `UPDC` reader - SLCD data update done clear bit"]
pub type UpdcR = crate::BitReader;
#[doc = "Field `UPDC` writer - SLCD data update done clear bit"]
pub type UpdcW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 1 - Start of frame flag clear"]
    #[inline(always)]
    pub fn sofc(&self) -> SofcR {
        SofcR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 3 - SLCD data update done clear bit"]
    #[inline(always)]
    pub fn updc(&self) -> UpdcR {
        UpdcR::new(((self.bits >> 3) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 1 - Start of frame flag clear"]
    #[inline(always)]
    #[must_use]
    pub fn sofc(&mut self) -> SofcW<StatcSpec> {
        SofcW::new(self, 1)
    }
    #[doc = "Bit 3 - SLCD data update done clear bit"]
    #[inline(always)]
    #[must_use]
    pub fn updc(&mut self) -> UpdcW<StatcSpec> {
        UpdcW::new(self, 3)
    }
}
#[doc = "SLCD status flag clear register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`statc::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 [`statc::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct StatcSpec;
impl crate::RegisterSpec for StatcSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`statc::R`](R) reader structure"]
impl crate::Readable for StatcSpec {}
#[doc = "`write(|w| ..)` method takes [`statc::W`](W) writer structure"]
impl crate::Writable for StatcSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets STATC to value 0"]
impl crate::Resettable for StatcSpec {
    const RESET_VALUE: u32 = 0;
}