pub type W = crate::W<ICRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FRAME_ISC {
Clear = 1,
}
impl From<FRAME_ISC> for bool {
#[inline(always)]
fn from(variant: FRAME_ISC) -> Self {
variant as u8 != 0
}
}
pub type FRAME_ISC_W<'a, REG> = crate::BitWriter<'a, REG, FRAME_ISC>;
impl<'a, REG> FRAME_ISC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(FRAME_ISC::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OVR_ISC {
Clear = 1,
}
impl From<OVR_ISC> for bool {
#[inline(always)]
fn from(variant: OVR_ISC) -> Self {
variant as u8 != 0
}
}
pub type OVR_ISC_W<'a, REG> = crate::BitWriter<'a, REG, OVR_ISC>;
impl<'a, REG> OVR_ISC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(OVR_ISC::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ERR_ISC {
Clear = 1,
}
impl From<ERR_ISC> for bool {
#[inline(always)]
fn from(variant: ERR_ISC) -> Self {
variant as u8 != 0
}
}
pub type ERR_ISC_W<'a, REG> = crate::BitWriter<'a, REG, ERR_ISC>;
impl<'a, REG> ERR_ISC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ERR_ISC::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum VSYNC_ISC {
Clear = 1,
}
impl From<VSYNC_ISC> for bool {
#[inline(always)]
fn from(variant: VSYNC_ISC) -> Self {
variant as u8 != 0
}
}
pub type VSYNC_ISC_W<'a, REG> = crate::BitWriter<'a, REG, VSYNC_ISC>;
impl<'a, REG> VSYNC_ISC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(VSYNC_ISC::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LINE_ISC {
Clear = 1,
}
impl From<LINE_ISC> for bool {
#[inline(always)]
fn from(variant: LINE_ISC) -> Self {
variant as u8 != 0
}
}
pub type LINE_ISC_W<'a, REG> = crate::BitWriter<'a, REG, LINE_ISC>;
impl<'a, REG> LINE_ISC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(LINE_ISC::Clear)
}
}
impl core::fmt::Debug for crate::generic::Reg<ICRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn frame_isc(&mut self) -> FRAME_ISC_W<ICRrs> {
FRAME_ISC_W::new(self, 0)
}
#[inline(always)]
pub fn ovr_isc(&mut self) -> OVR_ISC_W<ICRrs> {
OVR_ISC_W::new(self, 1)
}
#[inline(always)]
pub fn err_isc(&mut self) -> ERR_ISC_W<ICRrs> {
ERR_ISC_W::new(self, 2)
}
#[inline(always)]
pub fn vsync_isc(&mut self) -> VSYNC_ISC_W<ICRrs> {
VSYNC_ISC_W::new(self, 3)
}
#[inline(always)]
pub fn line_isc(&mut self) -> LINE_ISC_W<ICRrs> {
LINE_ISC_W::new(self, 4)
}
}
pub struct ICRrs;
impl crate::RegisterSpec for ICRrs {
type Ux = u32;
}
impl crate::Writable for ICRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ICRrs {}