pub type R = crate::R<SYNCBUSYrs>;
pub type CtrlR = crate::BitReader;
pub type CmdR = crate::BitReader;
pub type ClkdivR = crate::BitReader;
pub type StartframeR = crate::BitReader;
pub type SigframeR = crate::BitReader;
pub type TxdataxR = crate::BitReader;
pub type TxdataR = crate::BitReader;
pub type PulsectrlR = 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 clkdiv(&self) -> ClkdivR {
ClkdivR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn startframe(&self) -> StartframeR {
StartframeR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn sigframe(&self) -> SigframeR {
SigframeR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn txdatax(&self) -> TxdataxR {
TxdataxR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn txdata(&self) -> TxdataR {
TxdataR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pulsectrl(&self) -> PulsectrlR {
PulsectrlR::new(((self.bits >> 7) & 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("clkdiv", &self.clkdiv())
.field("startframe", &self.startframe())
.field("sigframe", &self.sigframe())
.field("txdatax", &self.txdatax())
.field("txdata", &self.txdata())
.field("pulsectrl", &self.pulsectrl())
.finish()
}
}
pub struct SYNCBUSYrs;
impl crate::RegisterSpec for SYNCBUSYrs {
type Ux = u32;
}
impl crate::Readable for SYNCBUSYrs {}
impl crate::Resettable for SYNCBUSYrs {}