#[doc = "Register `CONFIG_RF_FRONTEND_DIV5` reader"]
pub type R = crate::R<ConfigRfFrontendDiv5Spec>;
#[doc = "Register `CONFIG_RF_FRONTEND_DIV5` writer"]
pub type W = crate::W<ConfigRfFrontendDiv5Spec>;
#[doc = "Field `RFLDO_TRIM_OUTPUT` reader - 6:0\\]
Internal. Only to be used through TI provided API."]
pub type RfldoTrimOutputR = crate::FieldReader;
#[doc = "Field `RFLDO_TRIM_OUTPUT` writer - 6:0\\]
Internal. Only to be used through TI provided API."]
pub type RfldoTrimOutputW<'a, REG> = crate::FieldWriter<'a, REG, 7>;
#[doc = "Field `CTL_PA0_TRIM` reader - 18:14\\]
Internal. Only to be used through TI provided API."]
pub type CtlPa0TrimR = crate::FieldReader;
#[doc = "Field `CTL_PA0_TRIM` writer - 18:14\\]
Internal. Only to be used through TI provided API."]
pub type CtlPa0TrimW<'a, REG> = crate::FieldWriter<'a, REG, 5>;
#[doc = "Field `IFAMP_TRIM` reader - 23:19\\]
Internal. Only to be used through TI provided API."]
pub type IfampTrimR = crate::FieldReader;
#[doc = "Field `IFAMP_TRIM` writer - 23:19\\]
Internal. Only to be used through TI provided API."]
pub type IfampTrimW<'a, REG> = crate::FieldWriter<'a, REG, 5>;
#[doc = "Field `LNA_IB` reader - 27:24\\]
Internal. Only to be used through TI provided API."]
pub type LnaIbR = crate::FieldReader;
#[doc = "Field `LNA_IB` writer - 27:24\\]
Internal. Only to be used through TI provided API."]
pub type LnaIbW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
#[doc = "Field `IFAMP_IB` reader - 31:28\\]
Internal. Only to be used through TI provided API."]
pub type IfampIbR = crate::FieldReader;
#[doc = "Field `IFAMP_IB` writer - 31:28\\]
Internal. Only to be used through TI provided API."]
pub type IfampIbW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
#[doc = "Bits 0:6 - 6:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn rfldo_trim_output(&self) -> RfldoTrimOutputR {
RfldoTrimOutputR::new((self.bits & 0x7f) as u8)
}
#[doc = "Bits 14:18 - 18:14\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn ctl_pa0_trim(&self) -> CtlPa0TrimR {
CtlPa0TrimR::new(((self.bits >> 14) & 0x1f) as u8)
}
#[doc = "Bits 19:23 - 23:19\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn ifamp_trim(&self) -> IfampTrimR {
IfampTrimR::new(((self.bits >> 19) & 0x1f) as u8)
}
#[doc = "Bits 24:27 - 27:24\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
pub fn lna_ib(&self) -> LnaIbR {
LnaIbR::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 ifamp_ib(&self) -> IfampIbR {
IfampIbR::new(((self.bits >> 28) & 0x0f) as u8)
}
}
impl W {
#[doc = "Bits 0:6 - 6:0\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn rfldo_trim_output(&mut self) -> RfldoTrimOutputW<ConfigRfFrontendDiv5Spec> {
RfldoTrimOutputW::new(self, 0)
}
#[doc = "Bits 14:18 - 18:14\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn ctl_pa0_trim(&mut self) -> CtlPa0TrimW<ConfigRfFrontendDiv5Spec> {
CtlPa0TrimW::new(self, 14)
}
#[doc = "Bits 19:23 - 23:19\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn ifamp_trim(&mut self) -> IfampTrimW<ConfigRfFrontendDiv5Spec> {
IfampTrimW::new(self, 19)
}
#[doc = "Bits 24:27 - 27:24\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn lna_ib(&mut self) -> LnaIbW<ConfigRfFrontendDiv5Spec> {
LnaIbW::new(self, 24)
}
#[doc = "Bits 28:31 - 31:28\\]
Internal. Only to be used through TI provided API."]
#[inline(always)]
#[must_use]
pub fn ifamp_ib(&mut self) -> IfampIbW<ConfigRfFrontendDiv5Spec> {
IfampIbW::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 [`config_rf_frontend_div5::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 [`config_rf_frontend_div5::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ConfigRfFrontendDiv5Spec;
impl crate::RegisterSpec for ConfigRfFrontendDiv5Spec {
type Ux = u32;
}
#[doc = "`read()` method returns [`config_rf_frontend_div5::R`](R) reader structure"]
impl crate::Readable for ConfigRfFrontendDiv5Spec {}
#[doc = "`write(|w| ..)` method takes [`config_rf_frontend_div5::W`](W) writer structure"]
impl crate::Writable for ConfigRfFrontendDiv5Spec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets CONFIG_RF_FRONTEND_DIV5 to value 0x7000_3f80"]
impl crate::Resettable for ConfigRfFrontendDiv5Spec {
const RESET_VALUE: u32 = 0x7000_3f80;
}