pub type R = crate::R<SRrs>;
pub type IFEM_R = crate::BitReader;
pub type IFNF_R = crate::BitReader;
pub type OFNE_R = crate::BitReader;
pub type OFFU_R = crate::BitReader;
pub type BUSY_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn ifem(&self) -> IFEM_R {
IFEM_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ifnf(&self) -> IFNF_R {
IFNF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ofne(&self) -> OFNE_R {
OFNE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn offu(&self) -> OFFU_R {
OFFU_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn busy(&self) -> BUSY_R {
BUSY_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("busy", &self.busy())
.field("offu", &self.offu())
.field("ofne", &self.ofne())
.field("ifnf", &self.ifnf())
.field("ifem", &self.ifem())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {
const RESET_VALUE: u32 = 0x03;
}