pub type R = crate::R<STATUSrs>;
pub type RunningR = crate::BitReader;
pub type DirR = crate::BitReader;
pub type TopbvR = crate::BitReader;
pub type Ccvbv0R = crate::BitReader;
pub type Ccvbv1R = crate::BitReader;
pub type Ccvbv2R = crate::BitReader;
pub type Ccvbv3R = crate::BitReader;
pub type Icv0R = crate::BitReader;
pub type Icv1R = crate::BitReader;
pub type Icv2R = crate::BitReader;
pub type Icv3R = crate::BitReader;
pub type Ccpol0R = crate::BitReader;
pub type Ccpol1R = crate::BitReader;
pub type Ccpol2R = crate::BitReader;
pub type Ccpol3R = crate::BitReader;
impl R {
#[inline(always)]
pub fn running(&self) -> RunningR {
RunningR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dir(&self) -> DirR {
DirR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn topbv(&self) -> TopbvR {
TopbvR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ccvbv0(&self) -> Ccvbv0R {
Ccvbv0R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn ccvbv1(&self) -> Ccvbv1R {
Ccvbv1R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn ccvbv2(&self) -> Ccvbv2R {
Ccvbv2R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn ccvbv3(&self) -> Ccvbv3R {
Ccvbv3R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn icv0(&self) -> Icv0R {
Icv0R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn icv1(&self) -> Icv1R {
Icv1R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn icv2(&self) -> Icv2R {
Icv2R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn icv3(&self) -> Icv3R {
Icv3R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn ccpol0(&self) -> Ccpol0R {
Ccpol0R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn ccpol1(&self) -> Ccpol1R {
Ccpol1R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn ccpol2(&self) -> Ccpol2R {
Ccpol2R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn ccpol3(&self) -> Ccpol3R {
Ccpol3R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("STATUS")
.field("running", &self.running())
.field("dir", &self.dir())
.field("topbv", &self.topbv())
.field("ccvbv0", &self.ccvbv0())
.field("ccvbv1", &self.ccvbv1())
.field("ccvbv2", &self.ccvbv2())
.field("ccvbv3", &self.ccvbv3())
.field("icv0", &self.icv0())
.field("icv1", &self.icv1())
.field("icv2", &self.icv2())
.field("icv3", &self.icv3())
.field("ccpol0", &self.ccpol0())
.field("ccpol1", &self.ccpol1())
.field("ccpol2", &self.ccpol2())
.field("ccpol3", &self.ccpol3())
.finish()
}
}
pub struct STATUSrs;
impl crate::RegisterSpec for STATUSrs {
type Ux = u32;
}
impl crate::Readable for STATUSrs {}
impl crate::Resettable for STATUSrs {}