pub type W = crate::W<SCRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CALRAF {
Clear = 1,
}
impl From<CALRAF> for bool {
#[inline(always)]
fn from(variant: CALRAF) -> Self {
variant as u8 != 0
}
}
pub type CALRAF_W<'a, REG> = crate::BitWriter<'a, REG, CALRAF>;
impl<'a, REG> CALRAF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CALRAF::Clear)
}
}
pub use CALRAF_W as CALRBF_W;
pub use CALRAF_W as CWUTF_W;
pub use CALRAF_W as CTSF_W;
pub use CALRAF_W as CTSOVF_W;
pub use CALRAF_W as CITSF_W;
impl core::fmt::Debug for crate::generic::Reg<SCRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn calraf(&mut self) -> CALRAF_W<SCRrs> {
CALRAF_W::new(self, 0)
}
#[inline(always)]
pub fn calrbf(&mut self) -> CALRBF_W<SCRrs> {
CALRBF_W::new(self, 1)
}
#[inline(always)]
pub fn cwutf(&mut self) -> CWUTF_W<SCRrs> {
CWUTF_W::new(self, 2)
}
#[inline(always)]
pub fn ctsf(&mut self) -> CTSF_W<SCRrs> {
CTSF_W::new(self, 3)
}
#[inline(always)]
pub fn ctsovf(&mut self) -> CTSOVF_W<SCRrs> {
CTSOVF_W::new(self, 4)
}
#[inline(always)]
pub fn citsf(&mut self) -> CITSF_W<SCRrs> {
CITSF_W::new(self, 5)
}
}
pub struct SCRrs;
impl crate::RegisterSpec for SCRrs {
type Ux = u32;
}
impl crate::Writable for SCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SCRrs {}