pub type R = crate::R<TAMPCRrs>;
pub type W = crate::W<TAMPCRrs>;
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 TAMP2E_R = crate::BitReader;
pub type TAMP2E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2TRG_R = crate::BitReader;
pub type TAMP2TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP3E_R = crate::BitReader;
pub type TAMP3E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP3TRG_R = crate::BitReader;
pub type TAMP3TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMPTS_R = crate::BitReader;
pub type TAMPTS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMPFREQ_R = crate::FieldReader;
pub type TAMPFREQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type TAMPFLT_R = crate::FieldReader;
pub type TAMPFLT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TAMPPRCH_R = crate::FieldReader;
pub type TAMPPRCH_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TAMPPUDIS_R = crate::BitReader;
pub type TAMPPUDIS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1IE_R = crate::BitReader;
pub type TAMP1IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1NOERASE_R = crate::BitReader;
pub type TAMP1NOERASE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1MF_R = crate::BitReader;
pub type TAMP1MF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2IE_R = crate::BitReader;
pub type TAMP2IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2NOERASE_R = crate::BitReader;
pub type TAMP2NOERASE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2MF_R = crate::BitReader;
pub type TAMP2MF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP3IE_R = crate::BitReader;
pub type TAMP3IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP3NOERASE_R = crate::BitReader;
pub type TAMP3NOERASE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP3MF_R = crate::BitReader;
pub type TAMP3MF_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 tamp2e(&self) -> TAMP2E_R {
TAMP2E_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tamp2trg(&self) -> TAMP2TRG_R {
TAMP2TRG_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn tamp3e(&self) -> TAMP3E_R {
TAMP3E_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn tamp3trg(&self) -> TAMP3TRG_R {
TAMP3TRG_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn tampts(&self) -> TAMPTS_R {
TAMPTS_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn tampfreq(&self) -> TAMPFREQ_R {
TAMPFREQ_R::new(((self.bits >> 8) & 7) as u8)
}
#[inline(always)]
pub fn tampflt(&self) -> TAMPFLT_R {
TAMPFLT_R::new(((self.bits >> 11) & 3) as u8)
}
#[inline(always)]
pub fn tampprch(&self) -> TAMPPRCH_R {
TAMPPRCH_R::new(((self.bits >> 13) & 3) as u8)
}
#[inline(always)]
pub fn tamppudis(&self) -> TAMPPUDIS_R {
TAMPPUDIS_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn tamp1ie(&self) -> TAMP1IE_R {
TAMP1IE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn tamp1noerase(&self) -> TAMP1NOERASE_R {
TAMP1NOERASE_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn tamp1mf(&self) -> TAMP1MF_R {
TAMP1MF_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn tamp2ie(&self) -> TAMP2IE_R {
TAMP2IE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn tamp2noerase(&self) -> TAMP2NOERASE_R {
TAMP2NOERASE_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn tamp2mf(&self) -> TAMP2MF_R {
TAMP2MF_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn tamp3ie(&self) -> TAMP3IE_R {
TAMP3IE_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn tamp3noerase(&self) -> TAMP3NOERASE_R {
TAMP3NOERASE_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn tamp3mf(&self) -> TAMP3MF_R {
TAMP3MF_R::new(((self.bits >> 24) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TAMPCR")
.field("tamp1e", &self.tamp1e())
.field("tamp1trg", &self.tamp1trg())
.field("tampie", &self.tampie())
.field("tamp2e", &self.tamp2e())
.field("tamp2trg", &self.tamp2trg())
.field("tamp3e", &self.tamp3e())
.field("tamp3trg", &self.tamp3trg())
.field("tampts", &self.tampts())
.field("tampfreq", &self.tampfreq())
.field("tampflt", &self.tampflt())
.field("tampprch", &self.tampprch())
.field("tamppudis", &self.tamppudis())
.field("tamp1ie", &self.tamp1ie())
.field("tamp1noerase", &self.tamp1noerase())
.field("tamp1mf", &self.tamp1mf())
.field("tamp2ie", &self.tamp2ie())
.field("tamp2noerase", &self.tamp2noerase())
.field("tamp2mf", &self.tamp2mf())
.field("tamp3ie", &self.tamp3ie())
.field("tamp3noerase", &self.tamp3noerase())
.field("tamp3mf", &self.tamp3mf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tamp1e(&mut self) -> TAMP1E_W<TAMPCRrs> {
TAMP1E_W::new(self, 0)
}
#[inline(always)]
pub fn tamp1trg(&mut self) -> TAMP1TRG_W<TAMPCRrs> {
TAMP1TRG_W::new(self, 1)
}
#[inline(always)]
pub fn tampie(&mut self) -> TAMPIE_W<TAMPCRrs> {
TAMPIE_W::new(self, 2)
}
#[inline(always)]
pub fn tamp2e(&mut self) -> TAMP2E_W<TAMPCRrs> {
TAMP2E_W::new(self, 3)
}
#[inline(always)]
pub fn tamp2trg(&mut self) -> TAMP2TRG_W<TAMPCRrs> {
TAMP2TRG_W::new(self, 4)
}
#[inline(always)]
pub fn tamp3e(&mut self) -> TAMP3E_W<TAMPCRrs> {
TAMP3E_W::new(self, 5)
}
#[inline(always)]
pub fn tamp3trg(&mut self) -> TAMP3TRG_W<TAMPCRrs> {
TAMP3TRG_W::new(self, 6)
}
#[inline(always)]
pub fn tampts(&mut self) -> TAMPTS_W<TAMPCRrs> {
TAMPTS_W::new(self, 7)
}
#[inline(always)]
pub fn tampfreq(&mut self) -> TAMPFREQ_W<TAMPCRrs> {
TAMPFREQ_W::new(self, 8)
}
#[inline(always)]
pub fn tampflt(&mut self) -> TAMPFLT_W<TAMPCRrs> {
TAMPFLT_W::new(self, 11)
}
#[inline(always)]
pub fn tampprch(&mut self) -> TAMPPRCH_W<TAMPCRrs> {
TAMPPRCH_W::new(self, 13)
}
#[inline(always)]
pub fn tamppudis(&mut self) -> TAMPPUDIS_W<TAMPCRrs> {
TAMPPUDIS_W::new(self, 15)
}
#[inline(always)]
pub fn tamp1ie(&mut self) -> TAMP1IE_W<TAMPCRrs> {
TAMP1IE_W::new(self, 16)
}
#[inline(always)]
pub fn tamp1noerase(&mut self) -> TAMP1NOERASE_W<TAMPCRrs> {
TAMP1NOERASE_W::new(self, 17)
}
#[inline(always)]
pub fn tamp1mf(&mut self) -> TAMP1MF_W<TAMPCRrs> {
TAMP1MF_W::new(self, 18)
}
#[inline(always)]
pub fn tamp2ie(&mut self) -> TAMP2IE_W<TAMPCRrs> {
TAMP2IE_W::new(self, 19)
}
#[inline(always)]
pub fn tamp2noerase(&mut self) -> TAMP2NOERASE_W<TAMPCRrs> {
TAMP2NOERASE_W::new(self, 20)
}
#[inline(always)]
pub fn tamp2mf(&mut self) -> TAMP2MF_W<TAMPCRrs> {
TAMP2MF_W::new(self, 21)
}
#[inline(always)]
pub fn tamp3ie(&mut self) -> TAMP3IE_W<TAMPCRrs> {
TAMP3IE_W::new(self, 22)
}
#[inline(always)]
pub fn tamp3noerase(&mut self) -> TAMP3NOERASE_W<TAMPCRrs> {
TAMP3NOERASE_W::new(self, 23)
}
#[inline(always)]
pub fn tamp3mf(&mut self) -> TAMP3MF_W<TAMPCRrs> {
TAMP3MF_W::new(self, 24)
}
}
pub struct TAMPCRrs;
impl crate::RegisterSpec for TAMPCRrs {
type Ux = u32;
}
impl crate::Readable for TAMPCRrs {}
impl crate::Writable for TAMPCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TAMPCRrs {}