pub type R = crate::R<IMrs>;
pub type W = crate::W<IMrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OVRUDRIE {
Disabled = 0,
Enabled = 1,
}
impl From<OVRUDRIE> for bool {
#[inline(always)]
fn from(variant: OVRUDRIE) -> Self {
variant as u8 != 0
}
}
pub type OVRUDRIE_R = crate::BitReader<OVRUDRIE>;
impl OVRUDRIE_R {
#[inline(always)]
pub const fn variant(&self) -> OVRUDRIE {
match self.bits {
false => OVRUDRIE::Disabled,
true => OVRUDRIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == OVRUDRIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == OVRUDRIE::Enabled
}
}
pub type OVRUDRIE_W<'a, REG> = crate::BitWriter<'a, REG, OVRUDRIE>;
impl<'a, REG> OVRUDRIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(OVRUDRIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(OVRUDRIE::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum MUTEDETIE {
Disabled = 0,
Enabled = 1,
}
impl From<MUTEDETIE> for bool {
#[inline(always)]
fn from(variant: MUTEDETIE) -> Self {
variant as u8 != 0
}
}
pub type MUTEDETIE_R = crate::BitReader<MUTEDETIE>;
impl MUTEDETIE_R {
#[inline(always)]
pub const fn variant(&self) -> MUTEDETIE {
match self.bits {
false => MUTEDETIE::Disabled,
true => MUTEDETIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == MUTEDETIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == MUTEDETIE::Enabled
}
}
pub type MUTEDETIE_W<'a, REG> = crate::BitWriter<'a, REG, MUTEDETIE>;
impl<'a, REG> MUTEDETIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(MUTEDETIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(MUTEDETIE::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WCKCFGIE {
Disabled = 0,
Enabled = 1,
}
impl From<WCKCFGIE> for bool {
#[inline(always)]
fn from(variant: WCKCFGIE) -> Self {
variant as u8 != 0
}
}
pub type WCKCFGIE_R = crate::BitReader<WCKCFGIE>;
impl WCKCFGIE_R {
#[inline(always)]
pub const fn variant(&self) -> WCKCFGIE {
match self.bits {
false => WCKCFGIE::Disabled,
true => WCKCFGIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == WCKCFGIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == WCKCFGIE::Enabled
}
}
pub type WCKCFGIE_W<'a, REG> = crate::BitWriter<'a, REG, WCKCFGIE>;
impl<'a, REG> WCKCFGIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(WCKCFGIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(WCKCFGIE::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FREQIE {
Disabled = 0,
Enabled = 1,
}
impl From<FREQIE> for bool {
#[inline(always)]
fn from(variant: FREQIE) -> Self {
variant as u8 != 0
}
}
pub type FREQIE_R = crate::BitReader<FREQIE>;
impl FREQIE_R {
#[inline(always)]
pub const fn variant(&self) -> FREQIE {
match self.bits {
false => FREQIE::Disabled,
true => FREQIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == FREQIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == FREQIE::Enabled
}
}
pub type FREQIE_W<'a, REG> = crate::BitWriter<'a, REG, FREQIE>;
impl<'a, REG> FREQIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(FREQIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(FREQIE::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CNRDYIE {
Disabled = 0,
Enabled = 1,
}
impl From<CNRDYIE> for bool {
#[inline(always)]
fn from(variant: CNRDYIE) -> Self {
variant as u8 != 0
}
}
pub type CNRDYIE_R = crate::BitReader<CNRDYIE>;
impl CNRDYIE_R {
#[inline(always)]
pub const fn variant(&self) -> CNRDYIE {
match self.bits {
false => CNRDYIE::Disabled,
true => CNRDYIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == CNRDYIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == CNRDYIE::Enabled
}
}
pub type CNRDYIE_W<'a, REG> = crate::BitWriter<'a, REG, CNRDYIE>;
impl<'a, REG> CNRDYIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(CNRDYIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(CNRDYIE::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum AFSDETIE {
Disabled = 0,
Enabled = 1,
}
impl From<AFSDETIE> for bool {
#[inline(always)]
fn from(variant: AFSDETIE) -> Self {
variant as u8 != 0
}
}
pub type AFSDETIE_R = crate::BitReader<AFSDETIE>;
impl AFSDETIE_R {
#[inline(always)]
pub const fn variant(&self) -> AFSDETIE {
match self.bits {
false => AFSDETIE::Disabled,
true => AFSDETIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == AFSDETIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == AFSDETIE::Enabled
}
}
pub type AFSDETIE_W<'a, REG> = crate::BitWriter<'a, REG, AFSDETIE>;
impl<'a, REG> AFSDETIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(AFSDETIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(AFSDETIE::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LFSDETIE {
Disabled = 0,
Enabled = 1,
}
impl From<LFSDETIE> for bool {
#[inline(always)]
fn from(variant: LFSDETIE) -> Self {
variant as u8 != 0
}
}
pub type LFSDETIE_R = crate::BitReader<LFSDETIE>;
impl LFSDETIE_R {
#[inline(always)]
pub const fn variant(&self) -> LFSDETIE {
match self.bits {
false => LFSDETIE::Disabled,
true => LFSDETIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == LFSDETIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == LFSDETIE::Enabled
}
}
pub type LFSDETIE_W<'a, REG> = crate::BitWriter<'a, REG, LFSDETIE>;
impl<'a, REG> LFSDETIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(LFSDETIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(LFSDETIE::Enabled)
}
}
impl R {
#[inline(always)]
pub fn ovrudrie(&self) -> OVRUDRIE_R {
OVRUDRIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn mutedetie(&self) -> MUTEDETIE_R {
MUTEDETIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wckcfgie(&self) -> WCKCFGIE_R {
WCKCFGIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn freqie(&self) -> FREQIE_R {
FREQIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cnrdyie(&self) -> CNRDYIE_R {
CNRDYIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn afsdetie(&self) -> AFSDETIE_R {
AFSDETIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn lfsdetie(&self) -> LFSDETIE_R {
LFSDETIE_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IM")
.field("ovrudrie", &self.ovrudrie())
.field("mutedetie", &self.mutedetie())
.field("wckcfgie", &self.wckcfgie())
.field("freqie", &self.freqie())
.field("cnrdyie", &self.cnrdyie())
.field("afsdetie", &self.afsdetie())
.field("lfsdetie", &self.lfsdetie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ovrudrie(&mut self) -> OVRUDRIE_W<IMrs> {
OVRUDRIE_W::new(self, 0)
}
#[inline(always)]
pub fn mutedetie(&mut self) -> MUTEDETIE_W<IMrs> {
MUTEDETIE_W::new(self, 1)
}
#[inline(always)]
pub fn wckcfgie(&mut self) -> WCKCFGIE_W<IMrs> {
WCKCFGIE_W::new(self, 2)
}
#[inline(always)]
pub fn freqie(&mut self) -> FREQIE_W<IMrs> {
FREQIE_W::new(self, 3)
}
#[inline(always)]
pub fn cnrdyie(&mut self) -> CNRDYIE_W<IMrs> {
CNRDYIE_W::new(self, 4)
}
#[inline(always)]
pub fn afsdetie(&mut self) -> AFSDETIE_W<IMrs> {
AFSDETIE_W::new(self, 5)
}
#[inline(always)]
pub fn lfsdetie(&mut self) -> LFSDETIE_W<IMrs> {
LFSDETIE_W::new(self, 6)
}
}
pub struct IMrs;
impl crate::RegisterSpec for IMrs {
type Ux = u32;
}
impl crate::Readable for IMrs {}
impl crate::Writable for IMrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IMrs {}