pub type R = crate::R<SRrs>;
pub type TAMP1F_R = crate::BitReader;
pub type TAMP2F_R = crate::BitReader;
pub type TAMP3F_R = crate::BitReader;
pub type ITAMP1F_R = crate::BitReader;
pub type ITAMP2F_R = crate::BitReader;
pub type ITAMP3F_R = crate::BitReader;
pub type ITAMP4F_R = crate::BitReader;
pub type ITAMP5F_R = crate::BitReader;
pub type ITAMP6F_R = crate::BitReader;
pub type ITAMP8F_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn tamp1f(&self) -> TAMP1F_R {
TAMP1F_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tamp2f(&self) -> TAMP2F_R {
TAMP2F_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tamp3f(&self) -> TAMP3F_R {
TAMP3F_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn itamp1f(&self) -> ITAMP1F_R {
ITAMP1F_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn itamp2f(&self) -> ITAMP2F_R {
ITAMP2F_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn itamp3f(&self) -> ITAMP3F_R {
ITAMP3F_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn itamp4f(&self) -> ITAMP4F_R {
ITAMP4F_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn itamp5f(&self) -> ITAMP5F_R {
ITAMP5F_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn itamp6f(&self) -> ITAMP6F_R {
ITAMP6F_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn itamp8f(&self) -> ITAMP8F_R {
ITAMP8F_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("tamp1f", &self.tamp1f())
.field("tamp2f", &self.tamp2f())
.field("tamp3f", &self.tamp3f())
.field("itamp1f", &self.itamp1f())
.field("itamp2f", &self.itamp2f())
.field("itamp3f", &self.itamp3f())
.field("itamp4f", &self.itamp4f())
.field("itamp5f", &self.itamp5f())
.field("itamp6f", &self.itamp6f())
.field("itamp8f", &self.itamp8f())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {}