pub type W = crate::W<ICRrs>;
pub use crate::stm32h743::hrtim_master::icr::CMP1CW;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as REPC_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as UPDC_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as CPTC_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as SETC_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as RST1C_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as RST2C_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as RSTC_W;
pub use crate::stm32h743::hrtim_master::icr::CMPC_W as DLYPRTC_W;
impl core::fmt::Debug for crate::generic::Reg<ICRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn cmpc(&mut self, n: u8) -> CMPC_W<ICRrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMPC_W::new(self, n)
}
#[inline(always)]
pub fn cmp1c(&mut self) -> CMPC_W<ICRrs> {
CMPC_W::new(self, 0)
}
#[inline(always)]
pub fn cmp2c(&mut self) -> CMPC_W<ICRrs> {
CMPC_W::new(self, 1)
}
#[inline(always)]
pub fn cmp3c(&mut self) -> CMPC_W<ICRrs> {
CMPC_W::new(self, 2)
}
#[inline(always)]
pub fn cmp4c(&mut self) -> CMPC_W<ICRrs> {
CMPC_W::new(self, 3)
}
#[inline(always)]
pub fn repc(&mut self) -> REPC_W<ICRrs> {
REPC_W::new(self, 4)
}
#[inline(always)]
pub fn updc(&mut self) -> UPDC_W<ICRrs> {
UPDC_W::new(self, 6)
}
#[inline(always)]
pub fn cptc(&mut self, n: u8) -> CPTC_W<ICRrs> {
#[allow(clippy::no_effect)] [(); 2][n as usize];
CPTC_W::new(self, n + 7)
}
#[inline(always)]
pub fn cpt1c(&mut self) -> CPTC_W<ICRrs> {
CPTC_W::new(self, 7)
}
#[inline(always)]
pub fn cpt2c(&mut self) -> CPTC_W<ICRrs> {
CPTC_W::new(self, 8)
}
#[inline(always)]
pub fn setc(&mut self, n: u8) -> SETC_W<ICRrs> {
#[allow(clippy::no_effect)] [(); 2][n as usize];
SETC_W::new(self, n * 2 + 9)
}
#[inline(always)]
pub fn set1c(&mut self) -> SETC_W<ICRrs> {
SETC_W::new(self, 9)
}
#[inline(always)]
pub fn set2c(&mut self) -> SETC_W<ICRrs> {
SETC_W::new(self, 11)
}
#[inline(always)]
pub fn rst1c(&mut self) -> RST1C_W<ICRrs> {
RST1C_W::new(self, 10)
}
#[inline(always)]
pub fn rst2c(&mut self) -> RST2C_W<ICRrs> {
RST2C_W::new(self, 12)
}
#[inline(always)]
pub fn rstc(&mut self) -> RSTC_W<ICRrs> {
RSTC_W::new(self, 13)
}
#[inline(always)]
pub fn dlyprtc(&mut self) -> DLYPRTC_W<ICRrs> {
DLYPRTC_W::new(self, 14)
}
}
pub struct ICRrs;
impl crate::RegisterSpec for ICRrs {
type Ux = u32;
}
impl crate::Writable for ICRrs {
type Safety = crate::Unsafe;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x7fdf;
}
impl crate::Resettable for ICRrs {}