pub type R = crate::R<ORrs>;
pub type W = crate::W<ORrs>;
pub type TIM1_ETR_ADC1_RMP_R = crate::FieldReader;
pub type TIM1_ETR_ADC1_RMP_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TIM1_ETR_ADC4_RMP_R = crate::FieldReader;
pub type TIM1_ETR_ADC4_RMP_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[inline(always)]
pub fn tim1_etr_adc1_rmp(&self) -> TIM1_ETR_ADC1_RMP_R {
TIM1_ETR_ADC1_RMP_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn tim1_etr_adc4_rmp(&self) -> TIM1_ETR_ADC4_RMP_R {
TIM1_ETR_ADC4_RMP_R::new(((self.bits >> 2) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OR")
.field("tim1_etr_adc1_rmp", &self.tim1_etr_adc1_rmp())
.field("tim1_etr_adc4_rmp", &self.tim1_etr_adc4_rmp())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tim1_etr_adc1_rmp(&mut self) -> TIM1_ETR_ADC1_RMP_W<ORrs> {
TIM1_ETR_ADC1_RMP_W::new(self, 0)
}
#[inline(always)]
pub fn tim1_etr_adc4_rmp(&mut self) -> TIM1_ETR_ADC4_RMP_W<ORrs> {
TIM1_ETR_ADC4_RMP_W::new(self, 2)
}
}
pub struct ORrs;
impl crate::RegisterSpec for ORrs {
type Ux = u32;
}
impl crate::Readable for ORrs {}
impl crate::Writable for ORrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ORrs {}