pub type R = crate::R<SWIER1rs>;
pub type W = crate::W<SWIER1rs>;
pub type SWI0_R = crate::BitReader;
pub type SWI0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI1_R = crate::BitReader;
pub type SWI1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI2_R = crate::BitReader;
pub type SWI2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI3_R = crate::BitReader;
pub type SWI3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI4_R = crate::BitReader;
pub type SWI4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI5_R = crate::BitReader;
pub type SWI5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI6_R = crate::BitReader;
pub type SWI6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI7_R = crate::BitReader;
pub type SWI7_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI8_R = crate::BitReader;
pub type SWI8_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI9_R = crate::BitReader;
pub type SWI9_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI10_R = crate::BitReader;
pub type SWI10_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI11_R = crate::BitReader;
pub type SWI11_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI12_R = crate::BitReader;
pub type SWI12_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI13_R = crate::BitReader;
pub type SWI13_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI14_R = crate::BitReader;
pub type SWI14_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI15_R = crate::BitReader;
pub type SWI15_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI16_R = crate::BitReader;
pub type SWI16_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI21_R = crate::BitReader;
pub type SWI21_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWI22_R = crate::BitReader;
pub type SWI22_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn swi0(&self) -> SWI0_R {
SWI0_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn swi1(&self) -> SWI1_R {
SWI1_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn swi2(&self) -> SWI2_R {
SWI2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn swi3(&self) -> SWI3_R {
SWI3_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn swi4(&self) -> SWI4_R {
SWI4_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn swi5(&self) -> SWI5_R {
SWI5_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn swi6(&self) -> SWI6_R {
SWI6_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn swi7(&self) -> SWI7_R {
SWI7_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn swi8(&self) -> SWI8_R {
SWI8_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn swi9(&self) -> SWI9_R {
SWI9_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn swi10(&self) -> SWI10_R {
SWI10_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn swi11(&self) -> SWI11_R {
SWI11_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn swi12(&self) -> SWI12_R {
SWI12_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn swi13(&self) -> SWI13_R {
SWI13_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn swi14(&self) -> SWI14_R {
SWI14_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn swi15(&self) -> SWI15_R {
SWI15_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn swi16(&self) -> SWI16_R {
SWI16_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn swi21(&self) -> SWI21_R {
SWI21_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn swi22(&self) -> SWI22_R {
SWI22_R::new(((self.bits >> 22) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SWIER1")
.field("swi0", &self.swi0())
.field("swi1", &self.swi1())
.field("swi2", &self.swi2())
.field("swi3", &self.swi3())
.field("swi4", &self.swi4())
.field("swi5", &self.swi5())
.field("swi6", &self.swi6())
.field("swi7", &self.swi7())
.field("swi8", &self.swi8())
.field("swi9", &self.swi9())
.field("swi10", &self.swi10())
.field("swi11", &self.swi11())
.field("swi12", &self.swi12())
.field("swi13", &self.swi13())
.field("swi14", &self.swi14())
.field("swi15", &self.swi15())
.field("swi16", &self.swi16())
.field("swi21", &self.swi21())
.field("swi22", &self.swi22())
.finish()
}
}
impl W {
#[inline(always)]
pub fn swi0(&mut self) -> SWI0_W<SWIER1rs> {
SWI0_W::new(self, 0)
}
#[inline(always)]
pub fn swi1(&mut self) -> SWI1_W<SWIER1rs> {
SWI1_W::new(self, 1)
}
#[inline(always)]
pub fn swi2(&mut self) -> SWI2_W<SWIER1rs> {
SWI2_W::new(self, 2)
}
#[inline(always)]
pub fn swi3(&mut self) -> SWI3_W<SWIER1rs> {
SWI3_W::new(self, 3)
}
#[inline(always)]
pub fn swi4(&mut self) -> SWI4_W<SWIER1rs> {
SWI4_W::new(self, 4)
}
#[inline(always)]
pub fn swi5(&mut self) -> SWI5_W<SWIER1rs> {
SWI5_W::new(self, 5)
}
#[inline(always)]
pub fn swi6(&mut self) -> SWI6_W<SWIER1rs> {
SWI6_W::new(self, 6)
}
#[inline(always)]
pub fn swi7(&mut self) -> SWI7_W<SWIER1rs> {
SWI7_W::new(self, 7)
}
#[inline(always)]
pub fn swi8(&mut self) -> SWI8_W<SWIER1rs> {
SWI8_W::new(self, 8)
}
#[inline(always)]
pub fn swi9(&mut self) -> SWI9_W<SWIER1rs> {
SWI9_W::new(self, 9)
}
#[inline(always)]
pub fn swi10(&mut self) -> SWI10_W<SWIER1rs> {
SWI10_W::new(self, 10)
}
#[inline(always)]
pub fn swi11(&mut self) -> SWI11_W<SWIER1rs> {
SWI11_W::new(self, 11)
}
#[inline(always)]
pub fn swi12(&mut self) -> SWI12_W<SWIER1rs> {
SWI12_W::new(self, 12)
}
#[inline(always)]
pub fn swi13(&mut self) -> SWI13_W<SWIER1rs> {
SWI13_W::new(self, 13)
}
#[inline(always)]
pub fn swi14(&mut self) -> SWI14_W<SWIER1rs> {
SWI14_W::new(self, 14)
}
#[inline(always)]
pub fn swi15(&mut self) -> SWI15_W<SWIER1rs> {
SWI15_W::new(self, 15)
}
#[inline(always)]
pub fn swi16(&mut self) -> SWI16_W<SWIER1rs> {
SWI16_W::new(self, 16)
}
#[inline(always)]
pub fn swi21(&mut self) -> SWI21_W<SWIER1rs> {
SWI21_W::new(self, 21)
}
#[inline(always)]
pub fn swi22(&mut self) -> SWI22_W<SWIER1rs> {
SWI22_W::new(self, 22)
}
}
pub struct SWIER1rs;
impl crate::RegisterSpec for SWIER1rs {
type Ux = u32;
}
impl crate::Readable for SWIER1rs {}
impl crate::Writable for SWIER1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SWIER1rs {}