pub type R = crate::R<MISrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FRAME_MIS {
Disabled = 0,
Enabled = 1,
}
impl From<FRAME_MIS> for bool {
#[inline(always)]
fn from(variant: FRAME_MIS) -> Self {
variant as u8 != 0
}
}
pub type FRAME_MIS_R = crate::BitReader<FRAME_MIS>;
impl FRAME_MIS_R {
#[inline(always)]
pub const fn variant(&self) -> FRAME_MIS {
match self.bits {
false => FRAME_MIS::Disabled,
true => FRAME_MIS::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == FRAME_MIS::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == FRAME_MIS::Enabled
}
}
#[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
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ERR_MIS {
Disabled = 0,
Enabled = 1,
}
impl From<ERR_MIS> for bool {
#[inline(always)]
fn from(variant: ERR_MIS) -> Self {
variant as u8 != 0
}
}
pub type ERR_MIS_R = crate::BitReader<ERR_MIS>;
impl ERR_MIS_R {
#[inline(always)]
pub const fn variant(&self) -> ERR_MIS {
match self.bits {
false => ERR_MIS::Disabled,
true => ERR_MIS::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == ERR_MIS::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == ERR_MIS::Enabled
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum VSYNC_MIS {
Disabled = 0,
Enabled = 1,
}
impl From<VSYNC_MIS> for bool {
#[inline(always)]
fn from(variant: VSYNC_MIS) -> Self {
variant as u8 != 0
}
}
pub type VSYNC_MIS_R = crate::BitReader<VSYNC_MIS>;
impl VSYNC_MIS_R {
#[inline(always)]
pub const fn variant(&self) -> VSYNC_MIS {
match self.bits {
false => VSYNC_MIS::Disabled,
true => VSYNC_MIS::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == VSYNC_MIS::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == VSYNC_MIS::Enabled
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LINE_MIS {
Disabled = 0,
Enabled = 1,
}
impl From<LINE_MIS> for bool {
#[inline(always)]
fn from(variant: LINE_MIS) -> Self {
variant as u8 != 0
}
}
pub type LINE_MIS_R = crate::BitReader<LINE_MIS>;
impl LINE_MIS_R {
#[inline(always)]
pub const fn variant(&self) -> LINE_MIS {
match self.bits {
false => LINE_MIS::Disabled,
true => LINE_MIS::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == LINE_MIS::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == LINE_MIS::Enabled
}
}
impl R {
#[inline(always)]
pub fn frame_mis(&self) -> FRAME_MIS_R {
FRAME_MIS_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ovr_mis(&self) -> OVR_MIS_R {
OVR_MIS_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn err_mis(&self) -> ERR_MIS_R {
ERR_MIS_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn vsync_mis(&self) -> VSYNC_MIS_R {
VSYNC_MIS_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn line_mis(&self) -> LINE_MIS_R {
LINE_MIS_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MIS")
.field("line_mis", &self.line_mis())
.field("vsync_mis", &self.vsync_mis())
.field("err_mis", &self.err_mis())
.field("ovr_mis", &self.ovr_mis())
.field("frame_mis", &self.frame_mis())
.finish()
}
}
pub struct MISrs;
impl crate::RegisterSpec for MISrs {
type Ux = u32;
}
impl crate::Readable for MISrs {}
impl crate::Resettable for MISrs {}