pub type R = crate::R<SR1rs>;
pub type WUF1_R = crate::BitReader;
pub type WUF2_R = crate::BitReader;
pub type WUF3_R = crate::BitReader;
pub type WUF4_R = crate::BitReader;
pub type WUF5_R = crate::BitReader;
pub type WUF6_R = crate::BitReader;
pub type SBF_R = crate::BitReader;
pub type WUFI_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn wuf1(&self) -> WUF1_R {
WUF1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn wuf2(&self) -> WUF2_R {
WUF2_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wuf3(&self) -> WUF3_R {
WUF3_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn wuf4(&self) -> WUF4_R {
WUF4_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn wuf5(&self) -> WUF5_R {
WUF5_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn wuf6(&self) -> WUF6_R {
WUF6_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn sbf(&self) -> SBF_R {
SBF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn wufi(&self) -> WUFI_R {
WUFI_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR1")
.field("wuf1", &self.wuf1())
.field("wuf2", &self.wuf2())
.field("wuf3", &self.wuf3())
.field("wuf4", &self.wuf4())
.field("wuf5", &self.wuf5())
.field("wuf6", &self.wuf6())
.field("sbf", &self.sbf())
.field("wufi", &self.wufi())
.finish()
}
}
pub struct SR1rs;
impl crate::RegisterSpec for SR1rs {
type Ux = u32;
}
impl crate::Readable for SR1rs {}
impl crate::Resettable for SR1rs {}