pub type R = crate::R<P0IERrs>;
pub type W = crate::W<P0IERrs>;
pub type LINEIE_R = crate::BitReader;
pub type LINEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FRAMEIE_R = crate::BitReader;
pub type FRAMEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type VSYNCIE_R = crate::BitReader;
pub type VSYNCIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LIMITIE_R = crate::BitReader;
pub type LIMITIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OVRIE_R = crate::BitReader;
pub type OVRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn lineie(&self) -> LINEIE_R {
LINEIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn frameie(&self) -> FRAMEIE_R {
FRAMEIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn vsyncie(&self) -> VSYNCIE_R {
VSYNCIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn limitie(&self) -> LIMITIE_R {
LIMITIE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn ovrie(&self) -> OVRIE_R {
OVRIE_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("P0IER")
.field("lineie", &self.lineie())
.field("frameie", &self.frameie())
.field("vsyncie", &self.vsyncie())
.field("limitie", &self.limitie())
.field("ovrie", &self.ovrie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lineie(&mut self) -> LINEIE_W<P0IERrs> {
LINEIE_W::new(self, 0)
}
#[inline(always)]
pub fn frameie(&mut self) -> FRAMEIE_W<P0IERrs> {
FRAMEIE_W::new(self, 1)
}
#[inline(always)]
pub fn vsyncie(&mut self) -> VSYNCIE_W<P0IERrs> {
VSYNCIE_W::new(self, 2)
}
#[inline(always)]
pub fn limitie(&mut self) -> LIMITIE_W<P0IERrs> {
LIMITIE_W::new(self, 6)
}
#[inline(always)]
pub fn ovrie(&mut self) -> OVRIE_W<P0IERrs> {
OVRIE_W::new(self, 7)
}
}
pub struct P0IERrs;
impl crate::RegisterSpec for P0IERrs {
type Ux = u32;
}
impl crate::Readable for P0IERrs {}
impl crate::Writable for P0IERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for P0IERrs {}