pub type R = crate::R<DUTYCONFIGrs>;
pub type W = crate::W<DUTYCONFIGrs>;
pub type Em2dutycycledisR = crate::BitReader;
pub type Em2dutycycledisW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn em2dutycycledis(&self) -> Em2dutycycledisR {
Em2dutycycledisR::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DUTYCONFIG")
.field("em2dutycycledis", &self.em2dutycycledis())
.finish()
}
}
impl W {
#[inline(always)]
pub fn em2dutycycledis(&mut self) -> Em2dutycycledisW<'_, DUTYCONFIGrs> {
Em2dutycycledisW::new(self, 1)
}
}
pub struct DUTYCONFIGrs;
impl crate::RegisterSpec for DUTYCONFIGrs {
type Ux = u32;
}
impl crate::Readable for DUTYCONFIGrs {}
impl crate::Writable for DUTYCONFIGrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DUTYCONFIGrs {}