pub type R = crate::R<_SRrs>;
pub type W = crate::W<_SRrs>;
pub type UIF_R = crate::BitReader;
pub type UIF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC1IF_R = crate::BitReader;
pub type CC1IF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2IF_R = crate::BitReader;
pub type CC2IF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TIF_R = crate::BitReader;
pub type TIF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC1OF_R = crate::BitReader;
pub type CC1OF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2OF_R = crate::BitReader;
pub type CC2OF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn uif(&self) -> UIF_R {
UIF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cc1if(&self) -> CC1IF_R {
CC1IF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cc2if(&self) -> CC2IF_R {
CC2IF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tif(&self) -> TIF_R {
TIF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn cc1of(&self) -> CC1OF_R {
CC1OF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn cc2of(&self) -> CC2OF_R {
CC2OF_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("_SR")
.field("uif", &self.uif())
.field("cc1if", &self.cc1if())
.field("cc2if", &self.cc2if())
.field("tif", &self.tif())
.field("cc1of", &self.cc1of())
.field("cc2of", &self.cc2of())
.finish()
}
}
impl W {
#[inline(always)]
pub fn uif(&mut self) -> UIF_W<_SRrs> {
UIF_W::new(self, 0)
}
#[inline(always)]
pub fn cc1if(&mut self) -> CC1IF_W<_SRrs> {
CC1IF_W::new(self, 1)
}
#[inline(always)]
pub fn cc2if(&mut self) -> CC2IF_W<_SRrs> {
CC2IF_W::new(self, 2)
}
#[inline(always)]
pub fn tif(&mut self) -> TIF_W<_SRrs> {
TIF_W::new(self, 6)
}
#[inline(always)]
pub fn cc1of(&mut self) -> CC1OF_W<_SRrs> {
CC1OF_W::new(self, 9)
}
#[inline(always)]
pub fn cc2of(&mut self) -> CC2OF_W<_SRrs> {
CC2OF_W::new(self, 10)
}
}
pub struct _SRrs;
impl crate::RegisterSpec for _SRrs {
type Ux = u32;
}
impl crate::Readable for _SRrs {}
impl crate::Writable for _SRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for _SRrs {}