pub type R = crate::R<ORrs>;
pub type W = crate::W<ORrs>;
pub type SWP_TBYP_R = crate::BitReader;
pub type SWP_TBYP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SWP_CLASS_R = crate::BitReader;
pub type SWP_CLASS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn swp_tbyp(&self) -> SWP_TBYP_R {
SWP_TBYP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn swp_class(&self) -> SWP_CLASS_R {
SWP_CLASS_R::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OR")
.field("swp_tbyp", &self.swp_tbyp())
.field("swp_class", &self.swp_class())
.finish()
}
}
impl W {
#[inline(always)]
pub fn swp_tbyp(&mut self) -> SWP_TBYP_W<ORrs> {
SWP_TBYP_W::new(self, 0)
}
#[inline(always)]
pub fn swp_class(&mut self) -> SWP_CLASS_W<ORrs> {
SWP_CLASS_W::new(self, 1)
}
}
pub struct ORrs;
impl crate::RegisterSpec for ORrs {
type Ux = u32;
}
impl crate::Readable for ORrs {}
impl crate::Writable for ORrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ORrs {}