pub type R = crate::R<SWIER2rs>;
pub type W = crate::W<SWIER2rs>;
pub type SWIER34_R = crate::BitReader;
pub type SWIER34_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWIER46_R = crate::BitReader;
pub type SWIER46_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWIER49_R = crate::BitReader;
pub type SWIER49_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWIER51_R = crate::BitReader;
pub type SWIER51_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWIER54_R = crate::BitReader;
pub type SWIER54_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn swier34(&self) -> SWIER34_R {
SWIER34_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn swier46(&self) -> SWIER46_R {
SWIER46_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn swier49(&self) -> SWIER49_R {
SWIER49_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn swier51(&self) -> SWIER51_R {
SWIER51_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn swier54(&self) -> SWIER54_R {
SWIER54_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("SWIER2")
.field("swier34", &self.swier34())
.field("swier46", &self.swier46())
.field("swier49", &self.swier49())
.field("swier51", &self.swier51())
.field("swier54", &self.swier54())
.finish()
}
}
impl W {
#[inline(always)]
pub fn swier34(&mut self) -> SWIER34_W<SWIER2rs> {
SWIER34_W::new(self, 2)
}
#[inline(always)]
pub fn swier46(&mut self) -> SWIER46_W<SWIER2rs> {
SWIER46_W::new(self, 14)
}
#[inline(always)]
pub fn swier49(&mut self) -> SWIER49_W<SWIER2rs> {
SWIER49_W::new(self, 17)
}
#[inline(always)]
pub fn swier51(&mut self) -> SWIER51_W<SWIER2rs> {
SWIER51_W::new(self, 19)
}
#[inline(always)]
pub fn swier54(&mut self) -> SWIER54_W<SWIER2rs> {
SWIER54_W::new(self, 22)
}
}
pub struct SWIER2rs;
impl crate::RegisterSpec for SWIER2rs {
type Ux = u32;
}
impl crate::Readable for SWIER2rs {}
impl crate::Writable for SWIER2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SWIER2rs {}