pub type R = crate::R<TAFCRrs>;
pub type W = crate::W<TAFCRrs>;
pub type TAMP1E_R = crate::BitReader;
pub type TAMP1E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1TRG_R = crate::BitReader;
pub type TAMP1TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMPIE_R = crate::BitReader;
pub type TAMPIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1INSEL_R = crate::BitReader;
pub type TAMP1INSEL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSINSEL_R = crate::BitReader;
pub type TSINSEL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ALARMOUTTYPE_R = crate::BitReader;
pub type ALARMOUTTYPE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tamp1e(&self) -> TAMP1E_R {
TAMP1E_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tamp1trg(&self) -> TAMP1TRG_R {
TAMP1TRG_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tampie(&self) -> TAMPIE_R {
TAMPIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tamp1insel(&self) -> TAMP1INSEL_R {
TAMP1INSEL_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn tsinsel(&self) -> TSINSEL_R {
TSINSEL_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn alarmouttype(&self) -> ALARMOUTTYPE_R {
ALARMOUTTYPE_R::new(((self.bits >> 18) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TAFCR")
.field("alarmouttype", &self.alarmouttype())
.field("tsinsel", &self.tsinsel())
.field("tamp1insel", &self.tamp1insel())
.field("tampie", &self.tampie())
.field("tamp1trg", &self.tamp1trg())
.field("tamp1e", &self.tamp1e())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tamp1e(&mut self) -> TAMP1E_W<TAFCRrs> {
TAMP1E_W::new(self, 0)
}
#[inline(always)]
pub fn tamp1trg(&mut self) -> TAMP1TRG_W<TAFCRrs> {
TAMP1TRG_W::new(self, 1)
}
#[inline(always)]
pub fn tampie(&mut self) -> TAMPIE_W<TAFCRrs> {
TAMPIE_W::new(self, 2)
}
#[inline(always)]
pub fn tamp1insel(&mut self) -> TAMP1INSEL_W<TAFCRrs> {
TAMP1INSEL_W::new(self, 16)
}
#[inline(always)]
pub fn tsinsel(&mut self) -> TSINSEL_W<TAFCRrs> {
TSINSEL_W::new(self, 17)
}
#[inline(always)]
pub fn alarmouttype(&mut self) -> ALARMOUTTYPE_W<TAFCRrs> {
ALARMOUTTYPE_W::new(self, 18)
}
}
pub struct TAFCRrs;
impl crate::RegisterSpec for TAFCRrs {
type Ux = u32;
}
impl crate::Readable for TAFCRrs {}
impl crate::Writable for TAFCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TAFCRrs {}