atsamd51g/system_control/
ictr.rs
1#[doc = "Register `ICTR` reader"]
2pub type R = crate::R<IctrSpec>;
3#[doc = "Field `INTLINESNUM` reader - "]
4pub type IntlinesnumR = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:3"]
7 #[inline(always)]
8 pub fn intlinesnum(&self) -> IntlinesnumR {
9 IntlinesnumR::new((self.bits & 0x0f) as u8)
10 }
11}
12#[doc = "Interrupt Controller Type Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ictr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct IctrSpec;
14impl crate::RegisterSpec for IctrSpec {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`ictr::R`](R) reader structure"]
18impl crate::Readable for IctrSpec {}
19#[doc = "`reset()` method sets ICTR to value 0"]
20impl crate::Resettable for IctrSpec {
21 const RESET_VALUE: u32 = 0;
22}