1#[doc = "Register `PARAM` reader"]
2pub type R = crate::R<ParamSpec>;
3#[doc = "Field `IRQNUM` reader - Interrupt Number"]
4pub type IrqnumR = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:3 - Interrupt Number"]
7 #[inline(always)]
8 pub fn irqnum(&self) -> IrqnumR {
9 IrqnumR::new((self.bits & 0x0f) as u8)
10 }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("PARAM").field("irqnum", &self.irqnum()).finish()
16 }
17}
18#[doc = "Parameter\n\nYou can [`read`](crate::Reg::read) this register and get [`param::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct ParamSpec;
20impl crate::RegisterSpec for ParamSpec {
21 type Ux = u32;
22}
23#[doc = "`read()` method returns [`param::R`](R) reader structure"]
24impl crate::Readable for ParamSpec {}
25#[doc = "`reset()` method sets PARAM to value 0x01"]
26impl crate::Resettable for ParamSpec {
27 const RESET_VALUE: u32 = 0x01;
28}