cc13x0_pac 0.10.3

Peripheral Access Crate for TI's cc13x0 microcontroller
Documentation
#[doc = "Register `FSM_PRG_PUL` reader"]
pub type R = crate::R<FsmPrgPulSpec>;
#[doc = "Register `FSM_PRG_PUL` writer"]
pub type W = crate::W<FsmPrgPulSpec>;
#[doc = "Field `MAX_PRG_PUL` reader - 11:0\\]
Internal. Only to be used through TI provided API."]
pub type MaxPrgPulR = crate::FieldReader<u16>;
#[doc = "Field `MAX_PRG_PUL` writer - 11:0\\]
Internal. Only to be used through TI provided API."]
pub type MaxPrgPulW<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
#[doc = "Field `RESERVED12` reader - 15:12\\]
Internal. Only to be used through TI provided API."]
pub type Reserved12R = crate::FieldReader;
#[doc = "Field `RESERVED12` writer - 15:12\\]
Internal. Only to be used through TI provided API."]
pub type Reserved12W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
#[doc = "Field `BEG_EC_LEVEL` reader - 19:16\\]
Internal. Only to be used through TI provided API."]
pub type BegEcLevelR = crate::FieldReader;
#[doc = "Field `BEG_EC_LEVEL` writer - 19:16\\]
Internal. Only to be used through TI provided API."]
pub type BegEcLevelW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
#[doc = "Field `RESERVED20` reader - 31:20\\]
Internal. Only to be used through TI provided API."]
pub type Reserved20R = crate::FieldReader<u16>;
#[doc = "Field `RESERVED20` writer - 31:20\\]
Internal. Only to be used through TI provided API."]
pub type Reserved20W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
impl R {
    #[doc = "Bits 0:11 - 11:0\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn max_prg_pul(&self) -> MaxPrgPulR {
        MaxPrgPulR::new((self.bits & 0x0fff) as u16)
    }
    #[doc = "Bits 12:15 - 15:12\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn reserved12(&self) -> Reserved12R {
        Reserved12R::new(((self.bits >> 12) & 0x0f) as u8)
    }
    #[doc = "Bits 16:19 - 19:16\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn beg_ec_level(&self) -> BegEcLevelR {
        BegEcLevelR::new(((self.bits >> 16) & 0x0f) as u8)
    }
    #[doc = "Bits 20:31 - 31:20\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn reserved20(&self) -> Reserved20R {
        Reserved20R::new(((self.bits >> 20) & 0x0fff) as u16)
    }
}
impl W {
    #[doc = "Bits 0:11 - 11:0\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    #[must_use]
    pub fn max_prg_pul(&mut self) -> MaxPrgPulW<FsmPrgPulSpec> {
        MaxPrgPulW::new(self, 0)
    }
    #[doc = "Bits 12:15 - 15:12\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    #[must_use]
    pub fn reserved12(&mut self) -> Reserved12W<FsmPrgPulSpec> {
        Reserved12W::new(self, 12)
    }
    #[doc = "Bits 16:19 - 19:16\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    #[must_use]
    pub fn beg_ec_level(&mut self) -> BegEcLevelW<FsmPrgPulSpec> {
        BegEcLevelW::new(self, 16)
    }
    #[doc = "Bits 20:31 - 31:20\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    #[must_use]
    pub fn reserved20(&mut self) -> Reserved20W<FsmPrgPulSpec> {
        Reserved20W::new(self, 20)
    }
}
#[doc = "Internal. Only to be used through TI provided API.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsm_prg_pul::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 [`fsm_prg_pul::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FsmPrgPulSpec;
impl crate::RegisterSpec for FsmPrgPulSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`fsm_prg_pul::R`](R) reader structure"]
impl crate::Readable for FsmPrgPulSpec {}
#[doc = "`write(|w| ..)` method takes [`fsm_prg_pul::W`](W) writer structure"]
impl crate::Writable for FsmPrgPulSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets FSM_PRG_PUL to value 0x0004_0032"]
impl crate::Resettable for FsmPrgPulSpec {
    const RESET_VALUE: u32 = 0x0004_0032;
}