pub type W = crate::W<EGRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum UG {
Update = 1,
}
impl From<UG> for bool {
#[inline(always)]
fn from(variant: UG) -> Self {
variant as u8 != 0
}
}
pub type UG_W<'a, REG> = crate::BitWriter<'a, REG, UG>;
impl<'a, REG> UG_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn update(self) -> &'a mut crate::W<REG> {
self.variant(UG::Update)
}
}
impl core::fmt::Debug for crate::generic::Reg<EGRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn ug(&mut self) -> UG_W<EGRrs> {
UG_W::new(self, 0)
}
}
pub struct EGRrs;
impl crate::RegisterSpec for EGRrs {
type Ux = u32;
}
impl crate::Writable for EGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for EGRrs {}