init commit
This commit is contained in:
220
va416xx/src/clkgen/ctrl0.rs
Normal file
220
va416xx/src/clkgen/ctrl0.rs
Normal file
@ -0,0 +1,220 @@
|
||||
#[doc = "Register `CTRL0` reader"]
|
||||
pub type R = crate::R<Ctrl0Spec>;
|
||||
#[doc = "Register `CTRL0` writer"]
|
||||
pub type W = crate::W<Ctrl0Spec>;
|
||||
#[doc = "Field `REF_CLK_SEL` reader - PLL Reference Clock Select"]
|
||||
pub type RefClkSelR = crate::FieldReader;
|
||||
#[doc = "Field `REF_CLK_SEL` writer - PLL Reference Clock Select"]
|
||||
pub type RefClkSelW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
|
||||
#[doc = "Field `CLKSEL_SYS` reader - Input clock select to PLL"]
|
||||
pub type ClkselSysR = crate::FieldReader;
|
||||
#[doc = "Field `CLKSEL_SYS` writer - Input clock select to PLL"]
|
||||
pub type ClkselSysW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
|
||||
#[doc = "Field `PLL_INTFB` reader - PLL Symbol; select internal feedback path when high rather than FCLK"]
|
||||
pub type PllIntfbR = crate::BitReader;
|
||||
#[doc = "Field `PLL_INTFB` writer - PLL Symbol; select internal feedback path when high rather than FCLK"]
|
||||
pub type PllIntfbW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `PLL_PWDN` reader - PLL Symbol; power down when high"]
|
||||
pub type PllPwdnR = crate::BitReader;
|
||||
#[doc = "Field `PLL_PWDN` writer - PLL Symbol; power down when high"]
|
||||
pub type PllPwdnW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `PLL_BYPASS` reader - PLL Symbol; reference-to-output bypass when high"]
|
||||
pub type PllBypassR = crate::BitReader;
|
||||
#[doc = "Field `PLL_BYPASS` writer - PLL Symbol; reference-to-output bypass when high"]
|
||||
pub type PllBypassW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `PLL_TEST` reader - PLL Symbol; Reference-to-counters-to-output bypass when high"]
|
||||
pub type PllTestR = crate::BitReader;
|
||||
#[doc = "Field `PLL_TEST` writer - PLL Symbol; Reference-to-counters-to-output bypass when high"]
|
||||
pub type PllTestW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `PLL_BWADJ` reader - PLL Symbol; selects the values 1-64 for the bandwidth divider"]
|
||||
pub type PllBwadjR = crate::FieldReader;
|
||||
#[doc = "Field `PLL_BWADJ` writer - PLL Symbol; selects the values 1-64 for the bandwidth divider"]
|
||||
pub type PllBwadjW<'a, REG> = crate::FieldWriter<'a, REG, 6>;
|
||||
#[doc = "Field `PLL_CLKOD` reader - PLL Symbol; selects the values 1-16 for the post VCO divider"]
|
||||
pub type PllClkodR = crate::FieldReader;
|
||||
#[doc = "Field `PLL_CLKOD` writer - PLL Symbol; selects the values 1-16 for the post VCO divider"]
|
||||
pub type PllClkodW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
|
||||
#[doc = "Field `PLL_CLKF` reader - PLL Symbol; selects the values 1-64 for the multiplication factor"]
|
||||
pub type PllClkfR = crate::FieldReader;
|
||||
#[doc = "Field `PLL_CLKF` writer - PLL Symbol; selects the values 1-64 for the multiplication factor"]
|
||||
pub type PllClkfW<'a, REG> = crate::FieldWriter<'a, REG, 6>;
|
||||
#[doc = "Field `PLL_CLKR` reader - PLL Symbol; selects the values 1-16 for the reference divider"]
|
||||
pub type PllClkrR = crate::FieldReader;
|
||||
#[doc = "Field `PLL_CLKR` writer - PLL Symbol; selects the values 1-16 for the reference divider"]
|
||||
pub type PllClkrW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
|
||||
#[doc = "Field `CLK_DIV_SEL` reader - Selects the PLL out divider to divide by 1/2/4/8"]
|
||||
pub type ClkDivSelR = crate::FieldReader;
|
||||
#[doc = "Field `CLK_DIV_SEL` writer - Selects the PLL out divider to divide by 1/2/4/8"]
|
||||
pub type ClkDivSelW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
|
||||
#[doc = "Field `PLL_RESET` reader - Writing this bit to 1 puts the PLL into reset"]
|
||||
pub type PllResetR = crate::BitReader;
|
||||
#[doc = "Field `PLL_RESET` writer - Writing this bit to 1 puts the PLL into reset"]
|
||||
pub type PllResetW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `SYS_CLK_LOST_DET_EN` reader - Enable the circuit that detects loss of SYS_CLK"]
|
||||
pub type SysClkLostDetEnR = crate::BitReader;
|
||||
#[doc = "Field `SYS_CLK_LOST_DET_EN` writer - Enable the circuit that detects loss of SYS_CLK"]
|
||||
pub type SysClkLostDetEnW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
impl R {
|
||||
#[doc = "Bits 0:1 - PLL Reference Clock Select"]
|
||||
#[inline(always)]
|
||||
pub fn ref_clk_sel(&self) -> RefClkSelR {
|
||||
RefClkSelR::new((self.bits & 3) as u8)
|
||||
}
|
||||
#[doc = "Bits 2:3 - Input clock select to PLL"]
|
||||
#[inline(always)]
|
||||
pub fn clksel_sys(&self) -> ClkselSysR {
|
||||
ClkselSysR::new(((self.bits >> 2) & 3) as u8)
|
||||
}
|
||||
#[doc = "Bit 4 - PLL Symbol; select internal feedback path when high rather than FCLK"]
|
||||
#[inline(always)]
|
||||
pub fn pll_intfb(&self) -> PllIntfbR {
|
||||
PllIntfbR::new(((self.bits >> 4) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 5 - PLL Symbol; power down when high"]
|
||||
#[inline(always)]
|
||||
pub fn pll_pwdn(&self) -> PllPwdnR {
|
||||
PllPwdnR::new(((self.bits >> 5) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 6 - PLL Symbol; reference-to-output bypass when high"]
|
||||
#[inline(always)]
|
||||
pub fn pll_bypass(&self) -> PllBypassR {
|
||||
PllBypassR::new(((self.bits >> 6) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 7 - PLL Symbol; Reference-to-counters-to-output bypass when high"]
|
||||
#[inline(always)]
|
||||
pub fn pll_test(&self) -> PllTestR {
|
||||
PllTestR::new(((self.bits >> 7) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bits 8:13 - PLL Symbol; selects the values 1-64 for the bandwidth divider"]
|
||||
#[inline(always)]
|
||||
pub fn pll_bwadj(&self) -> PllBwadjR {
|
||||
PllBwadjR::new(((self.bits >> 8) & 0x3f) as u8)
|
||||
}
|
||||
#[doc = "Bits 14:17 - PLL Symbol; selects the values 1-16 for the post VCO divider"]
|
||||
#[inline(always)]
|
||||
pub fn pll_clkod(&self) -> PllClkodR {
|
||||
PllClkodR::new(((self.bits >> 14) & 0x0f) as u8)
|
||||
}
|
||||
#[doc = "Bits 18:23 - PLL Symbol; selects the values 1-64 for the multiplication factor"]
|
||||
#[inline(always)]
|
||||
pub fn pll_clkf(&self) -> PllClkfR {
|
||||
PllClkfR::new(((self.bits >> 18) & 0x3f) as u8)
|
||||
}
|
||||
#[doc = "Bits 24:27 - PLL Symbol; selects the values 1-16 for the reference divider"]
|
||||
#[inline(always)]
|
||||
pub fn pll_clkr(&self) -> PllClkrR {
|
||||
PllClkrR::new(((self.bits >> 24) & 0x0f) as u8)
|
||||
}
|
||||
#[doc = "Bits 28:29 - Selects the PLL out divider to divide by 1/2/4/8"]
|
||||
#[inline(always)]
|
||||
pub fn clk_div_sel(&self) -> ClkDivSelR {
|
||||
ClkDivSelR::new(((self.bits >> 28) & 3) as u8)
|
||||
}
|
||||
#[doc = "Bit 30 - Writing this bit to 1 puts the PLL into reset"]
|
||||
#[inline(always)]
|
||||
pub fn pll_reset(&self) -> PllResetR {
|
||||
PllResetR::new(((self.bits >> 30) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 31 - Enable the circuit that detects loss of SYS_CLK"]
|
||||
#[inline(always)]
|
||||
pub fn sys_clk_lost_det_en(&self) -> SysClkLostDetEnR {
|
||||
SysClkLostDetEnR::new(((self.bits >> 31) & 1) != 0)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bits 0:1 - PLL Reference Clock Select"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn ref_clk_sel(&mut self) -> RefClkSelW<Ctrl0Spec> {
|
||||
RefClkSelW::new(self, 0)
|
||||
}
|
||||
#[doc = "Bits 2:3 - Input clock select to PLL"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn clksel_sys(&mut self) -> ClkselSysW<Ctrl0Spec> {
|
||||
ClkselSysW::new(self, 2)
|
||||
}
|
||||
#[doc = "Bit 4 - PLL Symbol; select internal feedback path when high rather than FCLK"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_intfb(&mut self) -> PllIntfbW<Ctrl0Spec> {
|
||||
PllIntfbW::new(self, 4)
|
||||
}
|
||||
#[doc = "Bit 5 - PLL Symbol; power down when high"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_pwdn(&mut self) -> PllPwdnW<Ctrl0Spec> {
|
||||
PllPwdnW::new(self, 5)
|
||||
}
|
||||
#[doc = "Bit 6 - PLL Symbol; reference-to-output bypass when high"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_bypass(&mut self) -> PllBypassW<Ctrl0Spec> {
|
||||
PllBypassW::new(self, 6)
|
||||
}
|
||||
#[doc = "Bit 7 - PLL Symbol; Reference-to-counters-to-output bypass when high"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_test(&mut self) -> PllTestW<Ctrl0Spec> {
|
||||
PllTestW::new(self, 7)
|
||||
}
|
||||
#[doc = "Bits 8:13 - PLL Symbol; selects the values 1-64 for the bandwidth divider"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_bwadj(&mut self) -> PllBwadjW<Ctrl0Spec> {
|
||||
PllBwadjW::new(self, 8)
|
||||
}
|
||||
#[doc = "Bits 14:17 - PLL Symbol; selects the values 1-16 for the post VCO divider"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_clkod(&mut self) -> PllClkodW<Ctrl0Spec> {
|
||||
PllClkodW::new(self, 14)
|
||||
}
|
||||
#[doc = "Bits 18:23 - PLL Symbol; selects the values 1-64 for the multiplication factor"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_clkf(&mut self) -> PllClkfW<Ctrl0Spec> {
|
||||
PllClkfW::new(self, 18)
|
||||
}
|
||||
#[doc = "Bits 24:27 - PLL Symbol; selects the values 1-16 for the reference divider"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_clkr(&mut self) -> PllClkrW<Ctrl0Spec> {
|
||||
PllClkrW::new(self, 24)
|
||||
}
|
||||
#[doc = "Bits 28:29 - Selects the PLL out divider to divide by 1/2/4/8"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn clk_div_sel(&mut self) -> ClkDivSelW<Ctrl0Spec> {
|
||||
ClkDivSelW::new(self, 28)
|
||||
}
|
||||
#[doc = "Bit 30 - Writing this bit to 1 puts the PLL into reset"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_reset(&mut self) -> PllResetW<Ctrl0Spec> {
|
||||
PllResetW::new(self, 30)
|
||||
}
|
||||
#[doc = "Bit 31 - Enable the circuit that detects loss of SYS_CLK"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn sys_clk_lost_det_en(&mut self) -> SysClkLostDetEnW<Ctrl0Spec> {
|
||||
SysClkLostDetEnW::new(self, 31)
|
||||
}
|
||||
}
|
||||
#[doc = "Clock Generation Module Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrl0::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 [`ctrl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
|
||||
pub struct Ctrl0Spec;
|
||||
impl crate::RegisterSpec for Ctrl0Spec {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [`ctrl0::R`](R) reader structure"]
|
||||
impl crate::Readable for Ctrl0Spec {}
|
||||
#[doc = "`write(|w| ..)` method takes [`ctrl0::W`](W) writer structure"]
|
||||
impl crate::Writable for Ctrl0Spec {
|
||||
type Safety = crate::Unsafe;
|
||||
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
||||
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
||||
}
|
||||
#[doc = "`reset()` method sets CTRL0 to value 0x30"]
|
||||
impl crate::Resettable for Ctrl0Spec {
|
||||
const RESET_VALUE: u32 = 0x30;
|
||||
}
|
115
va416xx/src/clkgen/ctrl1.rs
Normal file
115
va416xx/src/clkgen/ctrl1.rs
Normal file
@ -0,0 +1,115 @@
|
||||
#[doc = "Register `CTRL1` reader"]
|
||||
pub type R = crate::R<Ctrl1Spec>;
|
||||
#[doc = "Register `CTRL1` writer"]
|
||||
pub type W = crate::W<Ctrl1Spec>;
|
||||
#[doc = "Field `SYS_CLK_LOST_DET_REARM` reader - Resets/Rearms the SYS_CLK lost detection feature"]
|
||||
pub type SysClkLostDetRearmR = crate::BitReader;
|
||||
#[doc = "Field `SYS_CLK_LOST_DET_REARM` writer - Resets/Rearms the SYS_CLK lost detection feature"]
|
||||
pub type SysClkLostDetRearmW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `PLL_LCK_DET_REARM` reader - Resets/Rearms the PLL lock detect circuit"]
|
||||
pub type PllLckDetRearmR = crate::BitReader;
|
||||
#[doc = "Field `PLL_LCK_DET_REARM` writer - Resets/Rearms the PLL lock detect circuit"]
|
||||
pub type PllLckDetRearmW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `PLL_LOST_LOCK_DET_EN` reader - Enables the PLL lock lost detection circuit"]
|
||||
pub type PllLostLockDetEnR = crate::BitReader;
|
||||
#[doc = "Field `PLL_LOST_LOCK_DET_EN` writer - Enables the PLL lock lost detection circuit"]
|
||||
pub type PllLostLockDetEnW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `XTAL_EN` reader - Enables the crystal oscillator"]
|
||||
pub type XtalEnR = crate::BitReader;
|
||||
#[doc = "Field `XTAL_EN` writer - Enables the crystal oscillator"]
|
||||
pub type XtalEnW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `XTAL_N_EN` reader - Enables XTAL_N output"]
|
||||
pub type XtalNEnR = crate::BitReader;
|
||||
#[doc = "Field `XTAL_N_EN` writer - Enables XTAL_N output"]
|
||||
pub type XtalNEnW<'a, REG> = crate::BitWriter<'a, REG>;
|
||||
#[doc = "Field `ADC_CLK_DIV_SEL` reader - Clock divider select for ADC"]
|
||||
pub type AdcClkDivSelR = crate::FieldReader;
|
||||
#[doc = "Field `ADC_CLK_DIV_SEL` writer - Clock divider select for ADC"]
|
||||
pub type AdcClkDivSelW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
|
||||
impl R {
|
||||
#[doc = "Bit 0 - Resets/Rearms the SYS_CLK lost detection feature"]
|
||||
#[inline(always)]
|
||||
pub fn sys_clk_lost_det_rearm(&self) -> SysClkLostDetRearmR {
|
||||
SysClkLostDetRearmR::new((self.bits & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 1 - Resets/Rearms the PLL lock detect circuit"]
|
||||
#[inline(always)]
|
||||
pub fn pll_lck_det_rearm(&self) -> PllLckDetRearmR {
|
||||
PllLckDetRearmR::new(((self.bits >> 1) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 2 - Enables the PLL lock lost detection circuit"]
|
||||
#[inline(always)]
|
||||
pub fn pll_lost_lock_det_en(&self) -> PllLostLockDetEnR {
|
||||
PllLostLockDetEnR::new(((self.bits >> 2) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 3 - Enables the crystal oscillator"]
|
||||
#[inline(always)]
|
||||
pub fn xtal_en(&self) -> XtalEnR {
|
||||
XtalEnR::new(((self.bits >> 3) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 4 - Enables XTAL_N output"]
|
||||
#[inline(always)]
|
||||
pub fn xtal_n_en(&self) -> XtalNEnR {
|
||||
XtalNEnR::new(((self.bits >> 4) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bits 5:6 - Clock divider select for ADC"]
|
||||
#[inline(always)]
|
||||
pub fn adc_clk_div_sel(&self) -> AdcClkDivSelR {
|
||||
AdcClkDivSelR::new(((self.bits >> 5) & 3) as u8)
|
||||
}
|
||||
}
|
||||
impl W {
|
||||
#[doc = "Bit 0 - Resets/Rearms the SYS_CLK lost detection feature"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn sys_clk_lost_det_rearm(&mut self) -> SysClkLostDetRearmW<Ctrl1Spec> {
|
||||
SysClkLostDetRearmW::new(self, 0)
|
||||
}
|
||||
#[doc = "Bit 1 - Resets/Rearms the PLL lock detect circuit"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_lck_det_rearm(&mut self) -> PllLckDetRearmW<Ctrl1Spec> {
|
||||
PllLckDetRearmW::new(self, 1)
|
||||
}
|
||||
#[doc = "Bit 2 - Enables the PLL lock lost detection circuit"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn pll_lost_lock_det_en(&mut self) -> PllLostLockDetEnW<Ctrl1Spec> {
|
||||
PllLostLockDetEnW::new(self, 2)
|
||||
}
|
||||
#[doc = "Bit 3 - Enables the crystal oscillator"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn xtal_en(&mut self) -> XtalEnW<Ctrl1Spec> {
|
||||
XtalEnW::new(self, 3)
|
||||
}
|
||||
#[doc = "Bit 4 - Enables XTAL_N output"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn xtal_n_en(&mut self) -> XtalNEnW<Ctrl1Spec> {
|
||||
XtalNEnW::new(self, 4)
|
||||
}
|
||||
#[doc = "Bits 5:6 - Clock divider select for ADC"]
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
pub fn adc_clk_div_sel(&mut self) -> AdcClkDivSelW<Ctrl1Spec> {
|
||||
AdcClkDivSelW::new(self, 5)
|
||||
}
|
||||
}
|
||||
#[doc = "Clock Generation Module Control Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrl1::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 [`ctrl1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
|
||||
pub struct Ctrl1Spec;
|
||||
impl crate::RegisterSpec for Ctrl1Spec {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [`ctrl1::R`](R) reader structure"]
|
||||
impl crate::Readable for Ctrl1Spec {}
|
||||
#[doc = "`write(|w| ..)` method takes [`ctrl1::W`](W) writer structure"]
|
||||
impl crate::Writable for Ctrl1Spec {
|
||||
type Safety = crate::Unsafe;
|
||||
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
||||
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
|
||||
}
|
||||
#[doc = "`reset()` method sets CTRL1 to value 0"]
|
||||
impl crate::Resettable for Ctrl1Spec {
|
||||
const RESET_VALUE: u32 = 0;
|
||||
}
|
43
va416xx/src/clkgen/stat.rs
Normal file
43
va416xx/src/clkgen/stat.rs
Normal file
@ -0,0 +1,43 @@
|
||||
#[doc = "Register `STAT` reader"]
|
||||
pub type R = crate::R<StatSpec>;
|
||||
#[doc = "Field `FBSLIP` reader - Feedback cycle slip output (CLKOUT frequency low)"]
|
||||
pub type FbslipR = crate::BitReader;
|
||||
#[doc = "Field `RFSLIP` reader - Reference cycle slip output (CLKOUT frequency high)"]
|
||||
pub type RfslipR = crate::BitReader;
|
||||
#[doc = "Field `LOCKLOST` reader - LOCK high Symbol indicates that RFLSIP or FBSLIP have occurred for 64 consecutive cycles"]
|
||||
pub type LocklostR = crate::BitReader;
|
||||
#[doc = "Field `SYSCLKLOST` reader - Set when SYS_CLK has dropped to less than 1MHz"]
|
||||
pub type SysclklostR = crate::BitReader;
|
||||
impl R {
|
||||
#[doc = "Bit 0 - Feedback cycle slip output (CLKOUT frequency low)"]
|
||||
#[inline(always)]
|
||||
pub fn fbslip(&self) -> FbslipR {
|
||||
FbslipR::new((self.bits & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 1 - Reference cycle slip output (CLKOUT frequency high)"]
|
||||
#[inline(always)]
|
||||
pub fn rfslip(&self) -> RfslipR {
|
||||
RfslipR::new(((self.bits >> 1) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 2 - LOCK high Symbol indicates that RFLSIP or FBSLIP have occurred for 64 consecutive cycles"]
|
||||
#[inline(always)]
|
||||
pub fn locklost(&self) -> LocklostR {
|
||||
LocklostR::new(((self.bits >> 2) & 1) != 0)
|
||||
}
|
||||
#[doc = "Bit 3 - Set when SYS_CLK has dropped to less than 1MHz"]
|
||||
#[inline(always)]
|
||||
pub fn sysclklost(&self) -> SysclklostR {
|
||||
SysclklostR::new(((self.bits >> 3) & 1) != 0)
|
||||
}
|
||||
}
|
||||
#[doc = "Clock Generation Module Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
|
||||
pub struct StatSpec;
|
||||
impl crate::RegisterSpec for StatSpec {
|
||||
type Ux = u32;
|
||||
}
|
||||
#[doc = "`read()` method returns [`stat::R`](R) reader structure"]
|
||||
impl crate::Readable for StatSpec {}
|
||||
#[doc = "`reset()` method sets STAT to value 0"]
|
||||
impl crate::Resettable for StatSpec {
|
||||
const RESET_VALUE: u32 = 0;
|
||||
}
|
Reference in New Issue
Block a user