1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#[doc = "Reader of register ASR"] pub type R = crate::R<u32, super::ASR>; #[doc = "Reader of field `FLVL`"] pub type FLVL_R = crate::R<u8, u8>; #[doc = "Reader of field `LFSDET`"] pub type LFSDET_R = crate::R<bool, bool>; #[doc = "Reader of field `AFSDET`"] pub type AFSDET_R = crate::R<bool, bool>; #[doc = "Reader of field `CNRDY`"] pub type CNRDY_R = crate::R<bool, bool>; #[doc = "Reader of field `FREQ`"] pub type FREQ_R = crate::R<bool, bool>; #[doc = "Reader of field `WCKCFG`"] pub type WCKCFG_R = crate::R<bool, bool>; #[doc = "Reader of field `MUTEDET`"] pub type MUTEDET_R = crate::R<bool, bool>; #[doc = "Reader of field `OVRUDR`"] pub type OVRUDR_R = crate::R<bool, bool>; impl R { #[doc = "Bits 16:18 - FIFO level threshold"] #[inline(always)] pub fn flvl(&self) -> FLVL_R { FLVL_R::new(((self.bits >> 16) & 0x07) as u8) } #[doc = "Bit 6 - Late frame synchronization detection"] #[inline(always)] pub fn lfsdet(&self) -> LFSDET_R { LFSDET_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 5 - Anticipated frame synchronization detection"] #[inline(always)] pub fn afsdet(&self) -> AFSDET_R { AFSDET_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 4 - Codec not ready"] #[inline(always)] pub fn cnrdy(&self) -> CNRDY_R { CNRDY_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 3 - FIFO request"] #[inline(always)] pub fn freq(&self) -> FREQ_R { FREQ_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 2 - Wrong clock configuration flag. This bit is read only"] #[inline(always)] pub fn wckcfg(&self) -> WCKCFG_R { WCKCFG_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 1 - Mute detection"] #[inline(always)] pub fn mutedet(&self) -> MUTEDET_R { MUTEDET_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 0 - Overrun / underrun"] #[inline(always)] pub fn ovrudr(&self) -> OVRUDR_R { OVRUDR_R::new((self.bits & 0x01) != 0) } }