pub type R = crate::R<ISRrs>;
pub type W = crate::W<ISRrs>;
pub type ALRWF_R = crate::BitReader;
pub type WUTWF_R = crate::BitReader;
pub type SHPF_R = crate::BitReader;
pub type INITS_R = crate::BitReader;
pub type RSF_R = crate::BitReader;
pub type RSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type INITF_R = crate::BitReader;
pub type INIT_R = crate::BitReader;
pub type INIT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ALRF_R = crate::BitReader;
pub type ALRF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WUTF_R = crate::BitReader;
pub type WUTF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSF_R = crate::BitReader;
pub type TSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSOVF_R = crate::BitReader;
pub type TSOVF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1F_R = crate::BitReader;
pub type TAMP1F_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2F_R = crate::BitReader;
pub type TAMP2F_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP3F_R = crate::BitReader;
pub type TAMP3F_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RECALPF_R = crate::BitReader;
pub type ITSF_R = crate::BitReader;
pub type ITSF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn alrwf(&self, n: u8) -> ALRWF_R {
#[allow(clippy::no_effect)] [(); 2][n as usize];
ALRWF_R::new(((self.bits >> n) & 1) != 0)
}
#[inline(always)]
pub fn alrwf_iter(&self) -> impl Iterator<Item = ALRWF_R> + '_ {
(0..2).map(move |n| ALRWF_R::new(((self.bits >> n) & 1) != 0))
}
#[inline(always)]
pub fn alrawf(&self) -> ALRWF_R {
ALRWF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn alrbwf(&self) -> ALRWF_R {
ALRWF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wutwf(&self) -> WUTWF_R {
WUTWF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn shpf(&self) -> SHPF_R {
SHPF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn inits(&self) -> INITS_R {
INITS_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn rsf(&self) -> RSF_R {
RSF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn initf(&self) -> INITF_R {
INITF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn init(&self) -> INIT_R {
INIT_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn alrf(&self, n: u8) -> ALRF_R {
#[allow(clippy::no_effect)] [(); 2][n as usize];
ALRF_R::new(((self.bits >> (n + 8)) & 1) != 0)
}
#[inline(always)]
pub fn alrf_iter(&self) -> impl Iterator<Item = ALRF_R> + '_ {
(0..2).map(move |n| ALRF_R::new(((self.bits >> (n + 8)) & 1) != 0))
}
#[inline(always)]
pub fn alraf(&self) -> ALRF_R {
ALRF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn alrbf(&self) -> ALRF_R {
ALRF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn wutf(&self) -> WUTF_R {
WUTF_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn tsf(&self) -> TSF_R {
TSF_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn tsovf(&self) -> TSOVF_R {
TSOVF_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn tamp1f(&self) -> TAMP1F_R {
TAMP1F_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn tamp2f(&self) -> TAMP2F_R {
TAMP2F_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn tamp3f(&self) -> TAMP3F_R {
TAMP3F_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn recalpf(&self) -> RECALPF_R {
RECALPF_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn itsf(&self) -> ITSF_R {
ITSF_R::new(((self.bits >> 17) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ISR")
.field("alrawf", &self.alrawf())
.field("alrbwf", &self.alrbwf())
.field("wutwf", &self.wutwf())
.field("shpf", &self.shpf())
.field("inits", &self.inits())
.field("rsf", &self.rsf())
.field("initf", &self.initf())
.field("init", &self.init())
.field("alraf", &self.alraf())
.field("alrbf", &self.alrbf())
.field("wutf", &self.wutf())
.field("tsf", &self.tsf())
.field("tsovf", &self.tsovf())
.field("tamp1f", &self.tamp1f())
.field("tamp2f", &self.tamp2f())
.field("tamp3f", &self.tamp3f())
.field("recalpf", &self.recalpf())
.field("itsf", &self.itsf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rsf(&mut self) -> RSF_W<ISRrs> {
RSF_W::new(self, 5)
}
#[inline(always)]
pub fn init(&mut self) -> INIT_W<ISRrs> {
INIT_W::new(self, 7)
}
#[inline(always)]
pub fn alrf(&mut self, n: u8) -> ALRF_W<ISRrs> {
#[allow(clippy::no_effect)] [(); 2][n as usize];
ALRF_W::new(self, n + 8)
}
#[inline(always)]
pub fn alraf(&mut self) -> ALRF_W<ISRrs> {
ALRF_W::new(self, 8)
}
#[inline(always)]
pub fn alrbf(&mut self) -> ALRF_W<ISRrs> {
ALRF_W::new(self, 9)
}
#[inline(always)]
pub fn wutf(&mut self) -> WUTF_W<ISRrs> {
WUTF_W::new(self, 10)
}
#[inline(always)]
pub fn tsf(&mut self) -> TSF_W<ISRrs> {
TSF_W::new(self, 11)
}
#[inline(always)]
pub fn tsovf(&mut self) -> TSOVF_W<ISRrs> {
TSOVF_W::new(self, 12)
}
#[inline(always)]
pub fn tamp1f(&mut self) -> TAMP1F_W<ISRrs> {
TAMP1F_W::new(self, 13)
}
#[inline(always)]
pub fn tamp2f(&mut self) -> TAMP2F_W<ISRrs> {
TAMP2F_W::new(self, 14)
}
#[inline(always)]
pub fn tamp3f(&mut self) -> TAMP3F_W<ISRrs> {
TAMP3F_W::new(self, 15)
}
#[inline(always)]
pub fn itsf(&mut self) -> ITSF_W<ISRrs> {
ITSF_W::new(self, 17)
}
}
pub struct ISRrs;
impl crate::RegisterSpec for ISRrs {
type Ux = u32;
}
impl crate::Readable for ISRrs {}
impl crate::Writable for ISRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ISRrs {
const RESET_VALUE: u32 = 0x07;
}