efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `CHDONE` reader
pub type R = crate::R<CHDONErs>;
///Register `CHDONE` writer
pub type W = crate::W<CHDONErs>;
///Field `CHDONE` reader - DMA Channel Linking or Done
pub type ChdoneR = crate::FieldReader;
///Field `CHDONE` writer - DMA Channel Linking or Done
pub type ChdoneW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
    ///Bits 0:7 - DMA Channel Linking or Done
    #[inline(always)]
    pub fn chdone(&self) -> ChdoneR {
        ChdoneR::new((self.bits & 0xff) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CHDONE")
            .field("chdone", &self.chdone())
            .finish()
    }
}
impl W {
    ///Bits 0:7 - DMA Channel Linking or Done
    #[inline(always)]
    pub fn chdone(&mut self) -> ChdoneW<'_, CHDONErs> {
        ChdoneW::new(self, 0)
    }
}
///DMA Channel Linking Done Register (Single-Cycle RMW)
///
///You can [`read`](crate::Reg::read) this register and get [`chdone::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`chdone::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct CHDONErs;
impl crate::RegisterSpec for CHDONErs {
    type Ux = u32;
}
///`read()` method returns [`chdone::R`](R) reader structure
impl crate::Readable for CHDONErs {}
///`write(|w| ..)` method takes [`chdone::W`](W) writer structure
impl crate::Writable for CHDONErs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets CHDONE to value 0
impl crate::Resettable for CHDONErs {}