efm32gg12b810/cmu/
hfxotrimstatus.rs1#[doc = "Reader of register HFXOTRIMSTATUS"]
2pub type R = crate::R<u32, super::HFXOTRIMSTATUS>;
3#[doc = "Reader of field `IBTRIMXOCORE`"]
4pub type IBTRIMXOCORE_R = crate::R<u16, u16>;
5#[doc = "Reader of field `IBTRIMXOCOREMON`"]
6pub type IBTRIMXOCOREMON_R = crate::R<u16, u16>;
7#[doc = "Reader of field `VALID`"]
8pub type VALID_R = crate::R<bool, bool>;
9#[doc = "Reader of field `MONVALID`"]
10pub type MONVALID_R = crate::R<bool, bool>;
11impl R {
12 #[doc = "Bits 0:10 - Value of IBTRIMXOCORE Found By Automatic HFXO Peak Detection Algorithm"]
13 #[inline(always)]
14 pub fn ibtrimxocore(&self) -> IBTRIMXOCORE_R {
15 IBTRIMXOCORE_R::new((self.bits & 0x07ff) as u16)
16 }
17 #[doc = "Bits 16:26 - Value of IBTRIMXOCORE Found By Automatic HFXO Peak Detection Algorithm or Peak Monitoring Algorithm (completion of Either Algorithm Will Cause an Update of IBTRIMXOCOREMON)"]
18 #[inline(always)]
19 pub fn ibtrimxocoremon(&self) -> IBTRIMXOCOREMON_R {
20 IBTRIMXOCOREMON_R::new(((self.bits >> 16) & 0x07ff) as u16)
21 }
22 #[doc = "Bit 30 - Peak Detection Algorithm Found a Value for IBTRIMXOCORE"]
23 #[inline(always)]
24 pub fn valid(&self) -> VALID_R {
25 VALID_R::new(((self.bits >> 30) & 0x01) != 0)
26 }
27 #[doc = "Bit 31 - Peak Detection Algorithm or Peak Monitoring Algorithm Found a Value for IBTRIMXOCOREMON"]
28 #[inline(always)]
29 pub fn monvalid(&self) -> MONVALID_R {
30 MONVALID_R::new(((self.bits >> 31) & 0x01) != 0)
31 }
32}