pub type R = crate::R<DIERrs>;
pub type W = crate::W<DIERrs>;
pub use crate::stm32h747cm4::hrtim_master::dier::CMP1DE;
pub use crate::stm32h747cm4::hrtim_master::dier::CMP1IE;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as REPDE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as UPDDE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as CPTDE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as SETDE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as RST1DE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as RST2DE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as RSTDE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_R as DLYPRTDE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as REPDE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as UPDDE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as CPTDE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as SETDE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as RST1DE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as RST2DE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as RSTDE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPDE_W as DLYPRTDE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as REPIE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as UPDIE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as CPTIE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as SETIE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as RST1IE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as RST2IE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as RSTIE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_R as DLYPRTIE_R;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as REPIE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as UPDIE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as CPTIE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as SETIE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as RST1IE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as RST2IE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as RSTIE_W;
pub use crate::stm32h747cm4::hrtim_master::dier::CMPIE_W as DLYPRTIE_W;
impl R {
#[inline(always)]
pub fn cmpie(&self, n: u8) -> CMPIE_R {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMPIE_R::new(((self.bits >> n) & 1) != 0)
}
#[inline(always)]
pub fn cmpie_iter(&self) -> impl Iterator<Item = CMPIE_R> + '_ {
(0..4).map(move |n| CMPIE_R::new(((self.bits >> n) & 1) != 0))
}
#[inline(always)]
pub fn cmp1ie(&self) -> CMPIE_R {
CMPIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cmp2ie(&self) -> CMPIE_R {
CMPIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cmp3ie(&self) -> CMPIE_R {
CMPIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cmp4ie(&self) -> CMPIE_R {
CMPIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn repie(&self) -> REPIE_R {
REPIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn updie(&self) -> UPDIE_R {
UPDIE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn cptie(&self, n: u8) -> CPTIE_R {
#[allow(clippy::no_effect)] [(); 2][n as usize];
CPTIE_R::new(((self.bits >> (n + 7)) & 1) != 0)
}
#[inline(always)]
pub fn cptie_iter(&self) -> impl Iterator<Item = CPTIE_R> + '_ {
(0..2).map(move |n| CPTIE_R::new(((self.bits >> (n + 7)) & 1) != 0))
}
#[inline(always)]
pub fn cpt1ie(&self) -> CPTIE_R {
CPTIE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn cpt2ie(&self) -> CPTIE_R {
CPTIE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn setie(&self, n: u8) -> SETIE_R {
#[allow(clippy::no_effect)] [(); 2][n as usize];
SETIE_R::new(((self.bits >> (n * 2 + 9)) & 1) != 0)
}
#[inline(always)]
pub fn setie_iter(&self) -> impl Iterator<Item = SETIE_R> + '_ {
(0..2).map(move |n| SETIE_R::new(((self.bits >> (n * 2 + 9)) & 1) != 0))
}
#[inline(always)]
pub fn set1ie(&self) -> SETIE_R {
SETIE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn set2ie(&self) -> SETIE_R {
SETIE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn rst1ie(&self) -> RST1IE_R {
RST1IE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn rst2ie(&self) -> RST2IE_R {
RST2IE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn rstie(&self) -> RSTIE_R {
RSTIE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn dlyprtie(&self) -> DLYPRTIE_R {
DLYPRTIE_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn cmpde(&self, n: u8) -> CMPDE_R {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMPDE_R::new(((self.bits >> (n + 16)) & 1) != 0)
}
#[inline(always)]
pub fn cmpde_iter(&self) -> impl Iterator<Item = CMPDE_R> + '_ {
(0..4).map(move |n| CMPDE_R::new(((self.bits >> (n + 16)) & 1) != 0))
}
#[inline(always)]
pub fn cmp1de(&self) -> CMPDE_R {
CMPDE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn cmp2de(&self) -> CMPDE_R {
CMPDE_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn cmp3de(&self) -> CMPDE_R {
CMPDE_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn cmp4de(&self) -> CMPDE_R {
CMPDE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn repde(&self) -> REPDE_R {
REPDE_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn updde(&self) -> UPDDE_R {
UPDDE_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn cptde(&self, n: u8) -> CPTDE_R {
#[allow(clippy::no_effect)] [(); 2][n as usize];
CPTDE_R::new(((self.bits >> (n + 23)) & 1) != 0)
}
#[inline(always)]
pub fn cptde_iter(&self) -> impl Iterator<Item = CPTDE_R> + '_ {
(0..2).map(move |n| CPTDE_R::new(((self.bits >> (n + 23)) & 1) != 0))
}
#[inline(always)]
pub fn cpt1de(&self) -> CPTDE_R {
CPTDE_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn cpt2de(&self) -> CPTDE_R {
CPTDE_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn setde(&self, n: u8) -> SETDE_R {
#[allow(clippy::no_effect)] [(); 2][n as usize];
SETDE_R::new(((self.bits >> (n * 2 + 25)) & 1) != 0)
}
#[inline(always)]
pub fn setde_iter(&self) -> impl Iterator<Item = SETDE_R> + '_ {
(0..2).map(move |n| SETDE_R::new(((self.bits >> (n * 2 + 25)) & 1) != 0))
}
#[inline(always)]
pub fn set1de(&self) -> SETDE_R {
SETDE_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn set2de(&self) -> SETDE_R {
SETDE_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn rst1de(&self) -> RST1DE_R {
RST1DE_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn rst2de(&self) -> RST2DE_R {
RST2DE_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn rstde(&self) -> RSTDE_R {
RSTDE_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn dlyprtde(&self) -> DLYPRTDE_R {
DLYPRTDE_R::new(((self.bits >> 30) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DIER")
.field("cmp1de", &self.cmp1de())
.field("cmp2de", &self.cmp2de())
.field("cmp3de", &self.cmp3de())
.field("cmp4de", &self.cmp4de())
.field("dlyprtde", &self.dlyprtde())
.field("rstde", &self.rstde())
.field("rst2de", &self.rst2de())
.field("set1de", &self.set1de())
.field("set2de", &self.set2de())
.field("rst1de", &self.rst1de())
.field("cpt1de", &self.cpt1de())
.field("cpt2de", &self.cpt2de())
.field("updde", &self.updde())
.field("repde", &self.repde())
.field("cmp1ie", &self.cmp1ie())
.field("cmp2ie", &self.cmp2ie())
.field("cmp3ie", &self.cmp3ie())
.field("cmp4ie", &self.cmp4ie())
.field("dlyprtie", &self.dlyprtie())
.field("rstie", &self.rstie())
.field("rst2ie", &self.rst2ie())
.field("set1ie", &self.set1ie())
.field("set2ie", &self.set2ie())
.field("rst1ie", &self.rst1ie())
.field("cpt1ie", &self.cpt1ie())
.field("cpt2ie", &self.cpt2ie())
.field("updie", &self.updie())
.field("repie", &self.repie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cmpie(&mut self, n: u8) -> CMPIE_W<DIERrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMPIE_W::new(self, n)
}
#[inline(always)]
pub fn cmp1ie(&mut self) -> CMPIE_W<DIERrs> {
CMPIE_W::new(self, 0)
}
#[inline(always)]
pub fn cmp2ie(&mut self) -> CMPIE_W<DIERrs> {
CMPIE_W::new(self, 1)
}
#[inline(always)]
pub fn cmp3ie(&mut self) -> CMPIE_W<DIERrs> {
CMPIE_W::new(self, 2)
}
#[inline(always)]
pub fn cmp4ie(&mut self) -> CMPIE_W<DIERrs> {
CMPIE_W::new(self, 3)
}
#[inline(always)]
pub fn repie(&mut self) -> REPIE_W<DIERrs> {
REPIE_W::new(self, 4)
}
#[inline(always)]
pub fn updie(&mut self) -> UPDIE_W<DIERrs> {
UPDIE_W::new(self, 6)
}
#[inline(always)]
pub fn cptie(&mut self, n: u8) -> CPTIE_W<DIERrs> {
#[allow(clippy::no_effect)] [(); 2][n as usize];
CPTIE_W::new(self, n + 7)
}
#[inline(always)]
pub fn cpt1ie(&mut self) -> CPTIE_W<DIERrs> {
CPTIE_W::new(self, 7)
}
#[inline(always)]
pub fn cpt2ie(&mut self) -> CPTIE_W<DIERrs> {
CPTIE_W::new(self, 8)
}
#[inline(always)]
pub fn setie(&mut self, n: u8) -> SETIE_W<DIERrs> {
#[allow(clippy::no_effect)] [(); 2][n as usize];
SETIE_W::new(self, n * 2 + 9)
}
#[inline(always)]
pub fn set1ie(&mut self) -> SETIE_W<DIERrs> {
SETIE_W::new(self, 9)
}
#[inline(always)]
pub fn set2ie(&mut self) -> SETIE_W<DIERrs> {
SETIE_W::new(self, 11)
}
#[inline(always)]
pub fn rst1ie(&mut self) -> RST1IE_W<DIERrs> {
RST1IE_W::new(self, 10)
}
#[inline(always)]
pub fn rst2ie(&mut self) -> RST2IE_W<DIERrs> {
RST2IE_W::new(self, 12)
}
#[inline(always)]
pub fn rstie(&mut self) -> RSTIE_W<DIERrs> {
RSTIE_W::new(self, 13)
}
#[inline(always)]
pub fn dlyprtie(&mut self) -> DLYPRTIE_W<DIERrs> {
DLYPRTIE_W::new(self, 14)
}
#[inline(always)]
pub fn cmpde(&mut self, n: u8) -> CMPDE_W<DIERrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMPDE_W::new(self, n + 16)
}
#[inline(always)]
pub fn cmp1de(&mut self) -> CMPDE_W<DIERrs> {
CMPDE_W::new(self, 16)
}
#[inline(always)]
pub fn cmp2de(&mut self) -> CMPDE_W<DIERrs> {
CMPDE_W::new(self, 17)
}
#[inline(always)]
pub fn cmp3de(&mut self) -> CMPDE_W<DIERrs> {
CMPDE_W::new(self, 18)
}
#[inline(always)]
pub fn cmp4de(&mut self) -> CMPDE_W<DIERrs> {
CMPDE_W::new(self, 19)
}
#[inline(always)]
pub fn repde(&mut self) -> REPDE_W<DIERrs> {
REPDE_W::new(self, 20)
}
#[inline(always)]
pub fn updde(&mut self) -> UPDDE_W<DIERrs> {
UPDDE_W::new(self, 22)
}
#[inline(always)]
pub fn cptde(&mut self, n: u8) -> CPTDE_W<DIERrs> {
#[allow(clippy::no_effect)] [(); 2][n as usize];
CPTDE_W::new(self, n + 23)
}
#[inline(always)]
pub fn cpt1de(&mut self) -> CPTDE_W<DIERrs> {
CPTDE_W::new(self, 23)
}
#[inline(always)]
pub fn cpt2de(&mut self) -> CPTDE_W<DIERrs> {
CPTDE_W::new(self, 24)
}
#[inline(always)]
pub fn setde(&mut self, n: u8) -> SETDE_W<DIERrs> {
#[allow(clippy::no_effect)] [(); 2][n as usize];
SETDE_W::new(self, n * 2 + 25)
}
#[inline(always)]
pub fn set1de(&mut self) -> SETDE_W<DIERrs> {
SETDE_W::new(self, 25)
}
#[inline(always)]
pub fn set2de(&mut self) -> SETDE_W<DIERrs> {
SETDE_W::new(self, 27)
}
#[inline(always)]
pub fn rst1de(&mut self) -> RST1DE_W<DIERrs> {
RST1DE_W::new(self, 26)
}
#[inline(always)]
pub fn rst2de(&mut self) -> RST2DE_W<DIERrs> {
RST2DE_W::new(self, 28)
}
#[inline(always)]
pub fn rstde(&mut self) -> RSTDE_W<DIERrs> {
RSTDE_W::new(self, 29)
}
#[inline(always)]
pub fn dlyprtde(&mut self) -> DLYPRTDE_W<DIERrs> {
DLYPRTDE_W::new(self, 30)
}
}
pub struct DIERrs;
impl crate::RegisterSpec for DIERrs {
type Ux = u32;
}
impl crate::Readable for DIERrs {}
impl crate::Writable for DIERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DIERrs {}