pub type R = crate::R<TIM2_ORrs>;
pub type W = crate::W<TIM2_ORrs>;
pub type IT4_RMP_R = crate::FieldReader;
pub type IT4_RMP_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[inline(always)]
pub fn it4_rmp(&self) -> IT4_RMP_R {
IT4_RMP_R::new(((self.bits >> 6) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM2_OR")
.field("it4_rmp", &self.it4_rmp())
.finish()
}
}
impl W {
#[inline(always)]
pub fn it4_rmp(&mut self) -> IT4_RMP_W<TIM2_ORrs> {
IT4_RMP_W::new(self, 6)
}
}
pub struct TIM2_ORrs;
impl crate::RegisterSpec for TIM2_ORrs {
type Ux = u32;
}
impl crate::Readable for TIM2_ORrs {}
impl crate::Writable for TIM2_ORrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TIM2_ORrs {}