pub type W = crate::W<ODISRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TODIS {
Disable = 1,
}
impl From<TODIS> for bool {
#[inline(always)]
fn from(variant: TODIS) -> Self {
variant as u8 != 0
}
}
pub type T1ODIS_W<'a, REG> = crate::BitWriter1S<'a, REG, TODIS>;
impl<'a, REG> T1ODIS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disable(self) -> &'a mut crate::W<REG> {
self.variant(TODIS::Disable)
}
}
pub use T1ODIS_W as T2ODIS_W;
impl core::fmt::Debug for crate::generic::Reg<ODISRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn t1odis(&mut self, n: u8) -> T1ODIS_W<ODISRrs> {
#[allow(clippy::no_effect)] [(); 5][n as usize];
T1ODIS_W::new(self, n * 2)
}
#[inline(always)]
pub fn ta1odis(&mut self) -> T1ODIS_W<ODISRrs> {
T1ODIS_W::new(self, 0)
}
#[inline(always)]
pub fn tb1odis(&mut self) -> T1ODIS_W<ODISRrs> {
T1ODIS_W::new(self, 2)
}
#[inline(always)]
pub fn tc1odis(&mut self) -> T1ODIS_W<ODISRrs> {
T1ODIS_W::new(self, 4)
}
#[inline(always)]
pub fn td1odis(&mut self) -> T1ODIS_W<ODISRrs> {
T1ODIS_W::new(self, 6)
}
#[inline(always)]
pub fn te1odis(&mut self) -> T1ODIS_W<ODISRrs> {
T1ODIS_W::new(self, 8)
}
#[inline(always)]
pub fn t2odis(&mut self, n: u8) -> T2ODIS_W<ODISRrs> {
#[allow(clippy::no_effect)] [(); 5][n as usize];
T2ODIS_W::new(self, n * 2 + 1)
}
#[inline(always)]
pub fn ta2odis(&mut self) -> T2ODIS_W<ODISRrs> {
T2ODIS_W::new(self, 1)
}
#[inline(always)]
pub fn tb2odis(&mut self) -> T2ODIS_W<ODISRrs> {
T2ODIS_W::new(self, 3)
}
#[inline(always)]
pub fn tc2odis(&mut self) -> T2ODIS_W<ODISRrs> {
T2ODIS_W::new(self, 5)
}
#[inline(always)]
pub fn td2odis(&mut self) -> T2ODIS_W<ODISRrs> {
T2ODIS_W::new(self, 7)
}
#[inline(always)]
pub fn te2odis(&mut self) -> T2ODIS_W<ODISRrs> {
T2ODIS_W::new(self, 9)
}
}
pub struct ODISRrs;
impl crate::RegisterSpec for ODISRrs {
type Ux = u32;
}
impl crate::Writable for ODISRrs {
type Safety = crate::Unsafe;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x03ff;
}
impl crate::Resettable for ODISRrs {}