stm32l4/stm32l4x1/tim8/
or1.rs1pub type R = crate::R<OR1rs>;
3pub type W = crate::W<OR1rs>;
5pub type ETR_ADC2_RMP_R = crate::FieldReader;
7pub type ETR_ADC2_RMP_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
9pub type ETR_ADC3_RMP_R = crate::FieldReader;
11pub type ETR_ADC3_RMP_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
13pub type TI1_RMP_R = crate::BitReader;
15pub type TI1_RMP_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[inline(always)]
20 pub fn etr_adc2_rmp(&self) -> ETR_ADC2_RMP_R {
21 ETR_ADC2_RMP_R::new((self.bits & 3) as u8)
22 }
23 #[inline(always)]
25 pub fn etr_adc3_rmp(&self) -> ETR_ADC3_RMP_R {
26 ETR_ADC3_RMP_R::new(((self.bits >> 2) & 3) as u8)
27 }
28 #[inline(always)]
30 pub fn ti1_rmp(&self) -> TI1_RMP_R {
31 TI1_RMP_R::new(((self.bits >> 4) & 1) != 0)
32 }
33}
34impl core::fmt::Debug for R {
35 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36 f.debug_struct("OR1")
37 .field("etr_adc2_rmp", &self.etr_adc2_rmp())
38 .field("etr_adc3_rmp", &self.etr_adc3_rmp())
39 .field("ti1_rmp", &self.ti1_rmp())
40 .finish()
41 }
42}
43impl W {
44 #[inline(always)]
46 pub fn etr_adc2_rmp(&mut self) -> ETR_ADC2_RMP_W<OR1rs> {
47 ETR_ADC2_RMP_W::new(self, 0)
48 }
49 #[inline(always)]
51 pub fn etr_adc3_rmp(&mut self) -> ETR_ADC3_RMP_W<OR1rs> {
52 ETR_ADC3_RMP_W::new(self, 2)
53 }
54 #[inline(always)]
56 pub fn ti1_rmp(&mut self) -> TI1_RMP_W<OR1rs> {
57 TI1_RMP_W::new(self, 4)
58 }
59}
60pub struct OR1rs;
66impl crate::RegisterSpec for OR1rs {
67 type Ux = u32;
68}
69impl crate::Readable for OR1rs {}
71impl crate::Writable for OR1rs {
73 type Safety = crate::Unsafe;
74}
75impl crate::Resettable for OR1rs {}