pub type R = crate::R<SET1Rrs>;
pub type W = crate::W<SET1Rrs>;
pub use crate::stm32h757cm7::hrtim_tima::set1r::CMP1;
pub use crate::stm32h757cm7::hrtim_tima::set1r::CMP_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::CMP_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::EXTEVNT1;
pub use crate::stm32h757cm7::hrtim_tima::set1r::EXTEVNT_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::EXTEVNT_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::MSTCMP1;
pub use crate::stm32h757cm7::hrtim_tima::set1r::MSTCMP_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::MSTCMP_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::MSTPER;
pub use crate::stm32h757cm7::hrtim_tima::set1r::MSTPER_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::MSTPER_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::PER;
pub use crate::stm32h757cm7::hrtim_tima::set1r::PER_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::PER_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::RESYNC;
pub use crate::stm32h757cm7::hrtim_tima::set1r::RESYNC_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::RESYNC_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::SST;
pub use crate::stm32h757cm7::hrtim_tima::set1r::SST_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::SST_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMACMP3_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMACMP4_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMBCMP3_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMBCMP4_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMCCMP1_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMCCMP2_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMDCMP1_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMDCMP2_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_R as TIMDCMP4_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMACMP3_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMACMP4_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMBCMP3_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMBCMP4_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMCCMP1_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMCCMP2_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMDCMP1_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMDCMP2_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::TIMBCMP1_W as TIMDCMP4_W;
pub use crate::stm32h757cm7::hrtim_tima::set1r::UPDATE;
pub use crate::stm32h757cm7::hrtim_tima::set1r::UPDATE_R;
pub use crate::stm32h757cm7::hrtim_tima::set1r::UPDATE_W;
impl R {
#[inline(always)]
pub fn sst(&self) -> SST_R {
SST_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn resync(&self) -> RESYNC_R {
RESYNC_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn per(&self) -> PER_R {
PER_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cmp(&self, n: u8) -> CMP_R {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMP_R::new(((self.bits >> (n + 3)) & 1) != 0)
}
#[inline(always)]
pub fn cmp_iter(&self) -> impl Iterator<Item = CMP_R> + '_ {
(0..4).map(move |n| CMP_R::new(((self.bits >> (n + 3)) & 1) != 0))
}
#[inline(always)]
pub fn cmp1(&self) -> CMP_R {
CMP_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cmp2(&self) -> CMP_R {
CMP_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn cmp3(&self) -> CMP_R {
CMP_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn cmp4(&self) -> CMP_R {
CMP_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn mstper(&self) -> MSTPER_R {
MSTPER_R::new(((self.bits >> 7) & 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 + 8)) & 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 + 8)) & 1) != 0))
}
#[inline(always)]
pub fn mstcmp1(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp2(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp3(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp4(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn timacmp3(&self) -> TIMACMP3_R {
TIMACMP3_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn timacmp4(&self) -> TIMACMP4_R {
TIMACMP4_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp3(&self) -> TIMBCMP3_R {
TIMBCMP3_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp4(&self) -> TIMBCMP4_R {
TIMBCMP4_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn timccmp1(&self) -> TIMCCMP1_R {
TIMCCMP1_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn timccmp2(&self) -> TIMCCMP2_R {
TIMCCMP2_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn timdcmp1(&self) -> TIMDCMP1_R {
TIMDCMP1_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn timdcmp2(&self) -> TIMDCMP2_R {
TIMDCMP2_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn timdcmp4(&self) -> TIMDCMP4_R {
TIMDCMP4_R::new(((self.bits >> 20) & 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 + 21)) & 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 + 21)) & 1) != 0))
}
#[inline(always)]
pub fn extevnt1(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn extevnt2(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn extevnt3(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn extevnt4(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn extevnt5(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn extevnt6(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn extevnt7(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn extevnt8(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn extevnt9(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn extevnt10(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn update(&self) -> UPDATE_R {
UPDATE_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SET1R")
.field("update", &self.update())
.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("timacmp3", &self.timacmp3())
.field("timdcmp4", &self.timdcmp4())
.field("timdcmp2", &self.timdcmp2())
.field("timdcmp1", &self.timdcmp1())
.field("timccmp2", &self.timccmp2())
.field("timccmp1", &self.timccmp1())
.field("timbcmp4", &self.timbcmp4())
.field("timbcmp3", &self.timbcmp3())
.field("timacmp4", &self.timacmp4())
.field("mstcmp1", &self.mstcmp1())
.field("mstcmp2", &self.mstcmp2())
.field("mstcmp3", &self.mstcmp3())
.field("mstcmp4", &self.mstcmp4())
.field("mstper", &self.mstper())
.field("cmp1", &self.cmp1())
.field("cmp2", &self.cmp2())
.field("cmp3", &self.cmp3())
.field("cmp4", &self.cmp4())
.field("per", &self.per())
.field("resync", &self.resync())
.field("sst", &self.sst())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sst(&mut self) -> SST_W<SET1Rrs> {
SST_W::new(self, 0)
}
#[inline(always)]
pub fn resync(&mut self) -> RESYNC_W<SET1Rrs> {
RESYNC_W::new(self, 1)
}
#[inline(always)]
pub fn per(&mut self) -> PER_W<SET1Rrs> {
PER_W::new(self, 2)
}
#[inline(always)]
pub fn cmp(&mut self, n: u8) -> CMP_W<SET1Rrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMP_W::new(self, n + 3)
}
#[inline(always)]
pub fn cmp1(&mut self) -> CMP_W<SET1Rrs> {
CMP_W::new(self, 3)
}
#[inline(always)]
pub fn cmp2(&mut self) -> CMP_W<SET1Rrs> {
CMP_W::new(self, 4)
}
#[inline(always)]
pub fn cmp3(&mut self) -> CMP_W<SET1Rrs> {
CMP_W::new(self, 5)
}
#[inline(always)]
pub fn cmp4(&mut self) -> CMP_W<SET1Rrs> {
CMP_W::new(self, 6)
}
#[inline(always)]
pub fn mstper(&mut self) -> MSTPER_W<SET1Rrs> {
MSTPER_W::new(self, 7)
}
#[inline(always)]
pub fn mstcmp(&mut self, n: u8) -> MSTCMP_W<SET1Rrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
MSTCMP_W::new(self, n + 8)
}
#[inline(always)]
pub fn mstcmp1(&mut self) -> MSTCMP_W<SET1Rrs> {
MSTCMP_W::new(self, 8)
}
#[inline(always)]
pub fn mstcmp2(&mut self) -> MSTCMP_W<SET1Rrs> {
MSTCMP_W::new(self, 9)
}
#[inline(always)]
pub fn mstcmp3(&mut self) -> MSTCMP_W<SET1Rrs> {
MSTCMP_W::new(self, 10)
}
#[inline(always)]
pub fn mstcmp4(&mut self) -> MSTCMP_W<SET1Rrs> {
MSTCMP_W::new(self, 11)
}
#[inline(always)]
pub fn timacmp3(&mut self) -> TIMACMP3_W<SET1Rrs> {
TIMACMP3_W::new(self, 12)
}
#[inline(always)]
pub fn timacmp4(&mut self) -> TIMACMP4_W<SET1Rrs> {
TIMACMP4_W::new(self, 13)
}
#[inline(always)]
pub fn timbcmp3(&mut self) -> TIMBCMP3_W<SET1Rrs> {
TIMBCMP3_W::new(self, 14)
}
#[inline(always)]
pub fn timbcmp4(&mut self) -> TIMBCMP4_W<SET1Rrs> {
TIMBCMP4_W::new(self, 15)
}
#[inline(always)]
pub fn timccmp1(&mut self) -> TIMCCMP1_W<SET1Rrs> {
TIMCCMP1_W::new(self, 16)
}
#[inline(always)]
pub fn timccmp2(&mut self) -> TIMCCMP2_W<SET1Rrs> {
TIMCCMP2_W::new(self, 17)
}
#[inline(always)]
pub fn timdcmp1(&mut self) -> TIMDCMP1_W<SET1Rrs> {
TIMDCMP1_W::new(self, 18)
}
#[inline(always)]
pub fn timdcmp2(&mut self) -> TIMDCMP2_W<SET1Rrs> {
TIMDCMP2_W::new(self, 19)
}
#[inline(always)]
pub fn timdcmp4(&mut self) -> TIMDCMP4_W<SET1Rrs> {
TIMDCMP4_W::new(self, 20)
}
#[inline(always)]
pub fn extevnt(&mut self, n: u8) -> EXTEVNT_W<SET1Rrs> {
#[allow(clippy::no_effect)] [(); 10][n as usize];
EXTEVNT_W::new(self, n + 21)
}
#[inline(always)]
pub fn extevnt1(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 21)
}
#[inline(always)]
pub fn extevnt2(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 22)
}
#[inline(always)]
pub fn extevnt3(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 23)
}
#[inline(always)]
pub fn extevnt4(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 24)
}
#[inline(always)]
pub fn extevnt5(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 25)
}
#[inline(always)]
pub fn extevnt6(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 26)
}
#[inline(always)]
pub fn extevnt7(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 27)
}
#[inline(always)]
pub fn extevnt8(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 28)
}
#[inline(always)]
pub fn extevnt9(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 29)
}
#[inline(always)]
pub fn extevnt10(&mut self) -> EXTEVNT_W<SET1Rrs> {
EXTEVNT_W::new(self, 30)
}
#[inline(always)]
pub fn update(&mut self) -> UPDATE_W<SET1Rrs> {
UPDATE_W::new(self, 31)
}
}
pub struct SET1Rrs;
impl crate::RegisterSpec for SET1Rrs {
type Ux = u32;
}
impl crate::Readable for SET1Rrs {}
impl crate::Writable for SET1Rrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SET1Rrs {}