pub type R = crate::R<SRrs>;
pub type YEMPTY_R = crate::BitReader;
pub type X1FULL_R = crate::BitReader;
pub type OVFL_R = crate::BitReader;
pub type UNFL_R = crate::BitReader;
pub type SAT_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn yempty(&self) -> YEMPTY_R {
YEMPTY_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn x1full(&self) -> X1FULL_R {
X1FULL_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ovfl(&self) -> OVFL_R {
OVFL_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn unfl(&self) -> UNFL_R {
UNFL_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn sat(&self) -> SAT_R {
SAT_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("yempty", &self.yempty())
.field("x1full", &self.x1full())
.field("ovfl", &self.ovfl())
.field("unfl", &self.unfl())
.field("sat", &self.sat())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {}