cc13x0_pac 0.10.3

Peripheral Access Crate for TI's cc13x0 microcontroller
Documentation
#[doc = "Register `FCFG_B7_START` reader"]
pub type R = crate::R<FcfgB7StartSpec>;
#[doc = "Register `FCFG_B7_START` writer"]
pub type W = crate::W<FcfgB7StartSpec>;
#[doc = "Field `B7_START_ADDR` reader - 23:0\\]
Internal. Only to be used through TI provided API."]
pub type B7StartAddrR = crate::FieldReader<u32>;
#[doc = "Field `B7_START_ADDR` writer - 23:0\\]
Internal. Only to be used through TI provided API."]
pub type B7StartAddrW<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
#[doc = "Field `B7_MUX_FACTOR` reader - 27:24\\]
Internal. Only to be used through TI provided API."]
pub type B7MuxFactorR = crate::FieldReader;
#[doc = "Field `B7_MUX_FACTOR` writer - 27:24\\]
Internal. Only to be used through TI provided API."]
pub type B7MuxFactorW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
#[doc = "Field `B7_MAX_SECTOR` reader - 31:28\\]
Internal. Only to be used through TI provided API."]
pub type B7MaxSectorR = crate::FieldReader;
#[doc = "Field `B7_MAX_SECTOR` writer - 31:28\\]
Internal. Only to be used through TI provided API."]
pub type B7MaxSectorW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
    #[doc = "Bits 0:23 - 23:0\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn b7_start_addr(&self) -> B7StartAddrR {
        B7StartAddrR::new(self.bits & 0x00ff_ffff)
    }
    #[doc = "Bits 24:27 - 27:24\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn b7_mux_factor(&self) -> B7MuxFactorR {
        B7MuxFactorR::new(((self.bits >> 24) & 0x0f) as u8)
    }
    #[doc = "Bits 28:31 - 31:28\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    pub fn b7_max_sector(&self) -> B7MaxSectorR {
        B7MaxSectorR::new(((self.bits >> 28) & 0x0f) as u8)
    }
}
impl W {
    #[doc = "Bits 0:23 - 23:0\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    #[must_use]
    pub fn b7_start_addr(&mut self) -> B7StartAddrW<FcfgB7StartSpec> {
        B7StartAddrW::new(self, 0)
    }
    #[doc = "Bits 24:27 - 27:24\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    #[must_use]
    pub fn b7_mux_factor(&mut self) -> B7MuxFactorW<FcfgB7StartSpec> {
        B7MuxFactorW::new(self, 24)
    }
    #[doc = "Bits 28:31 - 31:28\\]
Internal. Only to be used through TI provided API."]
    #[inline(always)]
    #[must_use]
    pub fn b7_max_sector(&mut self) -> B7MaxSectorW<FcfgB7StartSpec> {
        B7MaxSectorW::new(self, 28)
    }
}
#[doc = "Internal. Only to be used through TI provided API.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fcfg_b7_start::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 [`fcfg_b7_start::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FcfgB7StartSpec;
impl crate::RegisterSpec for FcfgB7StartSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`fcfg_b7_start::R`](R) reader structure"]
impl crate::Readable for FcfgB7StartSpec {}
#[doc = "`write(|w| ..)` method takes [`fcfg_b7_start::W`](W) writer structure"]
impl crate::Writable for FcfgB7StartSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets FCFG_B7_START to value 0"]
impl crate::Resettable for FcfgB7StartSpec {
    const RESET_VALUE: u32 = 0;
}