pub type R = crate::R<RSTRrs>;
pub type W = crate::W<RSTRrs>;
pub use crate::stm32h745cm7::hrtim_tima::rstr::CMP2;
pub use crate::stm32h745cm7::hrtim_tima::rstr::CMP2_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::CMP2_R as CMP4_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::CMP2_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::CMP2_W as CMP4_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::EXTEVNT1;
pub use crate::stm32h745cm7::hrtim_tima::rstr::EXTEVNT_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::EXTEVNT_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::MSTCMP1;
pub use crate::stm32h745cm7::hrtim_tima::rstr::MSTCMP_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::MSTCMP_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::MSTPER;
pub use crate::stm32h745cm7::hrtim_tima::rstr::MSTPER_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::MSTPER_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMACMP1_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMACMP2_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMACMP4_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMBCMP2_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMBCMP4_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMCCMP1_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMCCMP2_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMCCMP4_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMECMP1_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMECMP2_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_R as TIMECMP4_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMACMP1_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMACMP2_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMACMP4_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMBCMP2_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMBCMP4_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMCCMP1_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMCCMP2_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMCCMP4_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMECMP1_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMECMP2_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::TIMBCMP1_W as TIMECMP4_W;
pub use crate::stm32h745cm7::hrtim_tima::rstr::UPDT;
pub use crate::stm32h745cm7::hrtim_tima::rstr::UPDT_R;
pub use crate::stm32h745cm7::hrtim_tima::rstr::UPDT_W;
impl R {
#[inline(always)]
pub fn updt(&self) -> UPDT_R {
UPDT_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cmp2(&self) -> CMP2_R {
CMP2_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cmp4(&self) -> CMP4_R {
CMP4_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn mstper(&self) -> MSTPER_R {
MSTPER_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp(&self, n: u8) -> MSTCMP_R {
#[allow(clippy::no_effect)] [(); 4][n as usize];
MSTCMP_R::new(((self.bits >> (n + 5)) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp_iter(&self) -> impl Iterator<Item = MSTCMP_R> + '_ {
(0..4).map(move |n| MSTCMP_R::new(((self.bits >> (n + 5)) & 1) != 0))
}
#[inline(always)]
pub fn mstcmp1(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp2(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp3(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp4(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn extevnt(&self, n: u8) -> EXTEVNT_R {
#[allow(clippy::no_effect)] [(); 10][n as usize];
EXTEVNT_R::new(((self.bits >> (n + 9)) & 1) != 0)
}
#[inline(always)]
pub fn extevnt_iter(&self) -> impl Iterator<Item = EXTEVNT_R> + '_ {
(0..10).map(move |n| EXTEVNT_R::new(((self.bits >> (n + 9)) & 1) != 0))
}
#[inline(always)]
pub fn extevnt1(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn extevnt2(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn extevnt3(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn extevnt4(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn extevnt5(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn extevnt6(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn extevnt7(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn extevnt8(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn extevnt9(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn extevnt10(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn timacmp1(&self) -> TIMACMP1_R {
TIMACMP1_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn timacmp2(&self) -> TIMACMP2_R {
TIMACMP2_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn timacmp4(&self) -> TIMACMP4_R {
TIMACMP4_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp1(&self) -> TIMBCMP1_R {
TIMBCMP1_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp2(&self) -> TIMBCMP2_R {
TIMBCMP2_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp4(&self) -> TIMBCMP4_R {
TIMBCMP4_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn timccmp1(&self) -> TIMCCMP1_R {
TIMCCMP1_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn timccmp2(&self) -> TIMCCMP2_R {
TIMCCMP2_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn timccmp4(&self) -> TIMCCMP4_R {
TIMCCMP4_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn timecmp1(&self) -> TIMECMP1_R {
TIMECMP1_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn timecmp2(&self) -> TIMECMP2_R {
TIMECMP2_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn timecmp4(&self) -> TIMECMP4_R {
TIMECMP4_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("RSTR")
.field("timacmp1", &self.timacmp1())
.field("timecmp4", &self.timecmp4())
.field("timecmp2", &self.timecmp2())
.field("timecmp1", &self.timecmp1())
.field("timccmp4", &self.timccmp4())
.field("timccmp2", &self.timccmp2())
.field("timccmp1", &self.timccmp1())
.field("timbcmp4", &self.timbcmp4())
.field("timbcmp2", &self.timbcmp2())
.field("timbcmp1", &self.timbcmp1())
.field("timacmp4", &self.timacmp4())
.field("timacmp2", &self.timacmp2())
.field("extevnt1", &self.extevnt1())
.field("extevnt2", &self.extevnt2())
.field("extevnt3", &self.extevnt3())
.field("extevnt4", &self.extevnt4())
.field("extevnt5", &self.extevnt5())
.field("extevnt6", &self.extevnt6())
.field("extevnt7", &self.extevnt7())
.field("extevnt8", &self.extevnt8())
.field("extevnt9", &self.extevnt9())
.field("extevnt10", &self.extevnt10())
.field("mstcmp1", &self.mstcmp1())
.field("mstcmp2", &self.mstcmp2())
.field("mstcmp3", &self.mstcmp3())
.field("mstcmp4", &self.mstcmp4())
.field("mstper", &self.mstper())
.field("cmp2", &self.cmp2())
.field("cmp4", &self.cmp4())
.field("updt", &self.updt())
.finish()
}
}
impl W {
#[inline(always)]
pub fn updt(&mut self) -> UPDT_W<RSTRrs> {
UPDT_W::new(self, 1)
}
#[inline(always)]
pub fn cmp2(&mut self) -> CMP2_W<RSTRrs> {
CMP2_W::new(self, 2)
}
#[inline(always)]
pub fn cmp4(&mut self) -> CMP4_W<RSTRrs> {
CMP4_W::new(self, 3)
}
#[inline(always)]
pub fn mstper(&mut self) -> MSTPER_W<RSTRrs> {
MSTPER_W::new(self, 4)
}
#[inline(always)]
pub fn mstcmp(&mut self, n: u8) -> MSTCMP_W<RSTRrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
MSTCMP_W::new(self, n + 5)
}
#[inline(always)]
pub fn mstcmp1(&mut self) -> MSTCMP_W<RSTRrs> {
MSTCMP_W::new(self, 5)
}
#[inline(always)]
pub fn mstcmp2(&mut self) -> MSTCMP_W<RSTRrs> {
MSTCMP_W::new(self, 6)
}
#[inline(always)]
pub fn mstcmp3(&mut self) -> MSTCMP_W<RSTRrs> {
MSTCMP_W::new(self, 7)
}
#[inline(always)]
pub fn mstcmp4(&mut self) -> MSTCMP_W<RSTRrs> {
MSTCMP_W::new(self, 8)
}
#[inline(always)]
pub fn extevnt(&mut self, n: u8) -> EXTEVNT_W<RSTRrs> {
#[allow(clippy::no_effect)] [(); 10][n as usize];
EXTEVNT_W::new(self, n + 9)
}
#[inline(always)]
pub fn extevnt1(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 9)
}
#[inline(always)]
pub fn extevnt2(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 10)
}
#[inline(always)]
pub fn extevnt3(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 11)
}
#[inline(always)]
pub fn extevnt4(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 12)
}
#[inline(always)]
pub fn extevnt5(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 13)
}
#[inline(always)]
pub fn extevnt6(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 14)
}
#[inline(always)]
pub fn extevnt7(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 15)
}
#[inline(always)]
pub fn extevnt8(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 16)
}
#[inline(always)]
pub fn extevnt9(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 17)
}
#[inline(always)]
pub fn extevnt10(&mut self) -> EXTEVNT_W<RSTRrs> {
EXTEVNT_W::new(self, 18)
}
#[inline(always)]
pub fn timacmp1(&mut self) -> TIMACMP1_W<RSTRrs> {
TIMACMP1_W::new(self, 19)
}
#[inline(always)]
pub fn timacmp2(&mut self) -> TIMACMP2_W<RSTRrs> {
TIMACMP2_W::new(self, 20)
}
#[inline(always)]
pub fn timacmp4(&mut self) -> TIMACMP4_W<RSTRrs> {
TIMACMP4_W::new(self, 21)
}
#[inline(always)]
pub fn timbcmp1(&mut self) -> TIMBCMP1_W<RSTRrs> {
TIMBCMP1_W::new(self, 22)
}
#[inline(always)]
pub fn timbcmp2(&mut self) -> TIMBCMP2_W<RSTRrs> {
TIMBCMP2_W::new(self, 23)
}
#[inline(always)]
pub fn timbcmp4(&mut self) -> TIMBCMP4_W<RSTRrs> {
TIMBCMP4_W::new(self, 24)
}
#[inline(always)]
pub fn timccmp1(&mut self) -> TIMCCMP1_W<RSTRrs> {
TIMCCMP1_W::new(self, 25)
}
#[inline(always)]
pub fn timccmp2(&mut self) -> TIMCCMP2_W<RSTRrs> {
TIMCCMP2_W::new(self, 26)
}
#[inline(always)]
pub fn timccmp4(&mut self) -> TIMCCMP4_W<RSTRrs> {
TIMCCMP4_W::new(self, 27)
}
#[inline(always)]
pub fn timecmp1(&mut self) -> TIMECMP1_W<RSTRrs> {
TIMECMP1_W::new(self, 28)
}
#[inline(always)]
pub fn timecmp2(&mut self) -> TIMECMP2_W<RSTRrs> {
TIMECMP2_W::new(self, 29)
}
#[inline(always)]
pub fn timecmp4(&mut self) -> TIMECMP4_W<RSTRrs> {
TIMECMP4_W::new(self, 30)
}
}
pub struct RSTRrs;
impl crate::RegisterSpec for RSTRrs {
type Ux = u32;
}
impl crate::Readable for RSTRrs {}
impl crate::Writable for RSTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for RSTRrs {}