efm32wg942-pac 0.1.0

Peripheral access API for EFM32WG942 MCU (generated using svd2rust)
Documentation
#[doc = "Register `CHUSEBURSTS` reader"]
pub struct R(crate::R<CHUSEBURSTS_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<CHUSEBURSTS_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<CHUSEBURSTS_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<CHUSEBURSTS_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `CHUSEBURSTS` writer"]
pub struct W(crate::W<CHUSEBURSTS_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<CHUSEBURSTS_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<CHUSEBURSTS_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<CHUSEBURSTS_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `CH0USEBURSTS` reader - Channel 0 Useburst Set"]
pub type CH0USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH0USEBURSTS` writer - Channel 0 Useburst Set"]
pub type CH0USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 0>;
#[doc = "Field `CH1USEBURSTS` reader - Channel 1 Useburst Set"]
pub type CH1USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH1USEBURSTS` writer - Channel 1 Useburst Set"]
pub type CH1USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 1>;
#[doc = "Field `CH2USEBURSTS` reader - Channel 2 Useburst Set"]
pub type CH2USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH2USEBURSTS` writer - Channel 2 Useburst Set"]
pub type CH2USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 2>;
#[doc = "Field `CH3USEBURSTS` reader - Channel 3 Useburst Set"]
pub type CH3USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH3USEBURSTS` writer - Channel 3 Useburst Set"]
pub type CH3USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 3>;
#[doc = "Field `CH4USEBURSTS` reader - Channel 4 Useburst Set"]
pub type CH4USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH4USEBURSTS` writer - Channel 4 Useburst Set"]
pub type CH4USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 4>;
#[doc = "Field `CH5USEBURSTS` reader - Channel 5 Useburst Set"]
pub type CH5USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH5USEBURSTS` writer - Channel 5 Useburst Set"]
pub type CH5USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 5>;
#[doc = "Field `CH6USEBURSTS` reader - Channel 6 Useburst Set"]
pub type CH6USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH6USEBURSTS` writer - Channel 6 Useburst Set"]
pub type CH6USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 6>;
#[doc = "Field `CH7USEBURSTS` reader - Channel 7 Useburst Set"]
pub type CH7USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH7USEBURSTS` writer - Channel 7 Useburst Set"]
pub type CH7USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 7>;
#[doc = "Field `CH8USEBURSTS` reader - Channel 8 Useburst Set"]
pub type CH8USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH8USEBURSTS` writer - Channel 8 Useburst Set"]
pub type CH8USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 8>;
#[doc = "Field `CH9USEBURSTS` reader - Channel 9 Useburst Set"]
pub type CH9USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH9USEBURSTS` writer - Channel 9 Useburst Set"]
pub type CH9USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 9>;
#[doc = "Field `CH10USEBURSTS` reader - Channel 10 Useburst Set"]
pub type CH10USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH10USEBURSTS` writer - Channel 10 Useburst Set"]
pub type CH10USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 10>;
#[doc = "Field `CH11USEBURSTS` reader - Channel 11 Useburst Set"]
pub type CH11USEBURSTS_R = crate::BitReader<bool>;
#[doc = "Field `CH11USEBURSTS` writer - Channel 11 Useburst Set"]
pub type CH11USEBURSTS_W<'a> = crate::BitWriter<'a, u32, CHUSEBURSTS_SPEC, bool, 11>;
impl R {
    #[doc = "Bit 0 - Channel 0 Useburst Set"]
    #[inline(always)]
    pub fn ch0usebursts(&self) -> CH0USEBURSTS_R {
        CH0USEBURSTS_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Channel 1 Useburst Set"]
    #[inline(always)]
    pub fn ch1usebursts(&self) -> CH1USEBURSTS_R {
        CH1USEBURSTS_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Channel 2 Useburst Set"]
    #[inline(always)]
    pub fn ch2usebursts(&self) -> CH2USEBURSTS_R {
        CH2USEBURSTS_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Channel 3 Useburst Set"]
    #[inline(always)]
    pub fn ch3usebursts(&self) -> CH3USEBURSTS_R {
        CH3USEBURSTS_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Channel 4 Useburst Set"]
    #[inline(always)]
    pub fn ch4usebursts(&self) -> CH4USEBURSTS_R {
        CH4USEBURSTS_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Channel 5 Useburst Set"]
    #[inline(always)]
    pub fn ch5usebursts(&self) -> CH5USEBURSTS_R {
        CH5USEBURSTS_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Channel 6 Useburst Set"]
    #[inline(always)]
    pub fn ch6usebursts(&self) -> CH6USEBURSTS_R {
        CH6USEBURSTS_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Channel 7 Useburst Set"]
    #[inline(always)]
    pub fn ch7usebursts(&self) -> CH7USEBURSTS_R {
        CH7USEBURSTS_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Channel 8 Useburst Set"]
    #[inline(always)]
    pub fn ch8usebursts(&self) -> CH8USEBURSTS_R {
        CH8USEBURSTS_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Channel 9 Useburst Set"]
    #[inline(always)]
    pub fn ch9usebursts(&self) -> CH9USEBURSTS_R {
        CH9USEBURSTS_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Channel 10 Useburst Set"]
    #[inline(always)]
    pub fn ch10usebursts(&self) -> CH10USEBURSTS_R {
        CH10USEBURSTS_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Channel 11 Useburst Set"]
    #[inline(always)]
    pub fn ch11usebursts(&self) -> CH11USEBURSTS_R {
        CH11USEBURSTS_R::new(((self.bits >> 11) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Channel 0 Useburst Set"]
    #[inline(always)]
    pub fn ch0usebursts(&mut self) -> CH0USEBURSTS_W {
        CH0USEBURSTS_W::new(self)
    }
    #[doc = "Bit 1 - Channel 1 Useburst Set"]
    #[inline(always)]
    pub fn ch1usebursts(&mut self) -> CH1USEBURSTS_W {
        CH1USEBURSTS_W::new(self)
    }
    #[doc = "Bit 2 - Channel 2 Useburst Set"]
    #[inline(always)]
    pub fn ch2usebursts(&mut self) -> CH2USEBURSTS_W {
        CH2USEBURSTS_W::new(self)
    }
    #[doc = "Bit 3 - Channel 3 Useburst Set"]
    #[inline(always)]
    pub fn ch3usebursts(&mut self) -> CH3USEBURSTS_W {
        CH3USEBURSTS_W::new(self)
    }
    #[doc = "Bit 4 - Channel 4 Useburst Set"]
    #[inline(always)]
    pub fn ch4usebursts(&mut self) -> CH4USEBURSTS_W {
        CH4USEBURSTS_W::new(self)
    }
    #[doc = "Bit 5 - Channel 5 Useburst Set"]
    #[inline(always)]
    pub fn ch5usebursts(&mut self) -> CH5USEBURSTS_W {
        CH5USEBURSTS_W::new(self)
    }
    #[doc = "Bit 6 - Channel 6 Useburst Set"]
    #[inline(always)]
    pub fn ch6usebursts(&mut self) -> CH6USEBURSTS_W {
        CH6USEBURSTS_W::new(self)
    }
    #[doc = "Bit 7 - Channel 7 Useburst Set"]
    #[inline(always)]
    pub fn ch7usebursts(&mut self) -> CH7USEBURSTS_W {
        CH7USEBURSTS_W::new(self)
    }
    #[doc = "Bit 8 - Channel 8 Useburst Set"]
    #[inline(always)]
    pub fn ch8usebursts(&mut self) -> CH8USEBURSTS_W {
        CH8USEBURSTS_W::new(self)
    }
    #[doc = "Bit 9 - Channel 9 Useburst Set"]
    #[inline(always)]
    pub fn ch9usebursts(&mut self) -> CH9USEBURSTS_W {
        CH9USEBURSTS_W::new(self)
    }
    #[doc = "Bit 10 - Channel 10 Useburst Set"]
    #[inline(always)]
    pub fn ch10usebursts(&mut self) -> CH10USEBURSTS_W {
        CH10USEBURSTS_W::new(self)
    }
    #[doc = "Bit 11 - Channel 11 Useburst Set"]
    #[inline(always)]
    pub fn ch11usebursts(&mut self) -> CH11USEBURSTS_W {
        CH11USEBURSTS_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Channel Useburst Set Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [chusebursts](index.html) module"]
pub struct CHUSEBURSTS_SPEC;
impl crate::RegisterSpec for CHUSEBURSTS_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [chusebursts::R](R) reader structure"]
impl crate::Readable for CHUSEBURSTS_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [chusebursts::W](W) writer structure"]
impl crate::Writable for CHUSEBURSTS_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets CHUSEBURSTS to value 0"]
impl crate::Resettable for CHUSEBURSTS_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}