pub type R = crate::R<SYNCBUSYrs>;
pub type CtrlR = crate::BitReader;
pub type CmdR = crate::BitReader;
pub type TopbR = crate::BitReader;
pub type OvscfgR = crate::BitReader;
impl R {
#[inline(always)]
pub fn ctrl(&self) -> CtrlR {
CtrlR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cmd(&self) -> CmdR {
CmdR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn topb(&self) -> TopbR {
TopbR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ovscfg(&self) -> OvscfgR {
OvscfgR::new(((self.bits >> 3) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SYNCBUSY")
.field("ctrl", &self.ctrl())
.field("cmd", &self.cmd())
.field("topb", &self.topb())
.field("ovscfg", &self.ovscfg())
.finish()
}
}
pub struct SYNCBUSYrs;
impl crate::RegisterSpec for SYNCBUSYrs {
type Ux = u32;
}
impl crate::Readable for SYNCBUSYrs {}
impl crate::Resettable for SYNCBUSYrs {}