pub type R = crate::R<SRrs>;
pub type BUSYF_R = crate::BitReader;
pub type BSYENDF_R = crate::BitReader;
pub type ERRF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn busyf(&self) -> BUSYF_R {
BUSYF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn bsyendf(&self) -> BSYENDF_R {
BSYENDF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn errf(&self) -> ERRF_R {
ERRF_R::new(((self.bits >> 2) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("busyf", &self.busyf())
.field("bsyendf", &self.bsyendf())
.field("errf", &self.errf())
.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 = 0x01;
}