pub type R = crate::R<MISrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OVR_MIS {
Disabled = 0,
Enabled = 1,
}
impl From<OVR_MIS> for bool {
#[inline(always)]
fn from(variant: OVR_MIS) -> Self {
variant as u8 != 0
}
}
pub type OVR_MIS_R = crate::BitReader<OVR_MIS>;
impl OVR_MIS_R {
#[inline(always)]
pub const fn variant(&self) -> OVR_MIS {
match self.bits {
false => OVR_MIS::Disabled,
true => OVR_MIS::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == OVR_MIS::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == OVR_MIS::Enabled
}
}
impl R {
#[inline(always)]
pub fn ovr_mis(&self) -> OVR_MIS_R {
OVR_MIS_R::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MIS").field("ovr_mis", &self.ovr_mis()).finish()
}
}
pub struct MISrs;
impl crate::RegisterSpec for MISrs {
type Ux = u32;
}
impl crate::Readable for MISrs {}
impl crate::Resettable for MISrs {}