pub type R = crate::R<SRrs>;
pub type IFTF_R = crate::BitReader;
pub type IFNFF_R = crate::BitReader;
pub type OFTF_R = crate::BitReader;
pub type OFNEF_R = crate::BitReader;
pub type EOCF_R = crate::BitReader;
pub type HPDF_R = crate::BitReader;
pub type COF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn iftf(&self) -> IFTF_R {
IFTF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ifnff(&self) -> IFNFF_R {
IFNFF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn oftf(&self) -> OFTF_R {
OFTF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ofnef(&self) -> OFNEF_R {
OFNEF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn eocf(&self) -> EOCF_R {
EOCF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn hpdf(&self) -> HPDF_R {
HPDF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn cof(&self) -> COF_R {
COF_R::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("SR")
.field("iftf", &self.iftf())
.field("ifnff", &self.ifnff())
.field("oftf", &self.oftf())
.field("ofnef", &self.ofnef())
.field("eocf", &self.eocf())
.field("hpdf", &self.hpdf())
.field("cof", &self.cof())
.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 = 0x06;
}