stm32wb_pac/exti/
hwcfgr1.rs

1#[doc = "Reader of register HWCFGR1"]
2pub type R = crate::R<u32, super::HWCFGR1>;
3#[doc = "Reader of field `NBEVENTS`"]
4pub type NBEVENTS_R = crate::R<u8, u8>;
5#[doc = "Reader of field `NBCPUS`"]
6pub type NBCPUS_R = crate::R<u8, u8>;
7#[doc = "Reader of field `CPUEVTEN`"]
8pub type CPUEVTEN_R = crate::R<u8, u8>;
9impl R {
10    #[doc = "Bits 0:7 - HW configuration number of event"]
11    #[inline(always)]
12    pub fn nbevents(&self) -> NBEVENTS_R {
13        NBEVENTS_R::new((self.bits & 0xff) as u8)
14    }
15    #[doc = "Bits 8:11 - HW configuration number of CPUs"]
16    #[inline(always)]
17    pub fn nbcpus(&self) -> NBCPUS_R {
18        NBCPUS_R::new(((self.bits >> 8) & 0x0f) as u8)
19    }
20    #[doc = "Bits 12:15 - HW configuration of CPU(m) event output enable"]
21    #[inline(always)]
22    pub fn cpuevten(&self) -> CPUEVTEN_R {
23        CPUEVTEN_R::new(((self.bits >> 12) & 0x0f) as u8)
24    }
25}