pub type R = crate::R<M4SRrs>;
pub type W = crate::W<M4SRrs>;
pub type SEDCF_R = crate::BitReader;
pub type SEDCF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DEDF_R = crate::BitReader;
pub type DEDF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DEBWDF_R = crate::BitReader;
pub type DEBWDF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sedcf(&self) -> SEDCF_R {
SEDCF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dedf(&self) -> DEDF_R {
DEDF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn debwdf(&self) -> DEBWDF_R {
DEBWDF_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("M4SR")
.field("sedcf", &self.sedcf())
.field("dedf", &self.dedf())
.field("debwdf", &self.debwdf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sedcf(&mut self) -> SEDCF_W<M4SRrs> {
SEDCF_W::new(self, 0)
}
#[inline(always)]
pub fn dedf(&mut self) -> DEDF_W<M4SRrs> {
DEDF_W::new(self, 1)
}
#[inline(always)]
pub fn debwdf(&mut self) -> DEBWDF_W<M4SRrs> {
DEBWDF_W::new(self, 2)
}
}
pub struct M4SRrs;
impl crate::RegisterSpec for M4SRrs {
type Ux = u32;
}
impl crate::Readable for M4SRrs {}
impl crate::Writable for M4SRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for M4SRrs {}