rp2040_pac/timer/
ints.rs

1#[doc = "Register `INTS` reader"]
2pub type R = crate::R<INTS_SPEC>;
3#[doc = "Field `ALARM_0` reader - "]
4pub type ALARM_0_R = crate::BitReader;
5#[doc = "Field `ALARM_1` reader - "]
6pub type ALARM_1_R = crate::BitReader;
7#[doc = "Field `ALARM_2` reader - "]
8pub type ALARM_2_R = crate::BitReader;
9#[doc = "Field `ALARM_3` reader - "]
10pub type ALARM_3_R = crate::BitReader;
11impl R {
12    #[doc = "Bit 0"]
13    #[inline(always)]
14    pub fn alarm_0(&self) -> ALARM_0_R {
15        ALARM_0_R::new((self.bits & 1) != 0)
16    }
17    #[doc = "Bit 1"]
18    #[inline(always)]
19    pub fn alarm_1(&self) -> ALARM_1_R {
20        ALARM_1_R::new(((self.bits >> 1) & 1) != 0)
21    }
22    #[doc = "Bit 2"]
23    #[inline(always)]
24    pub fn alarm_2(&self) -> ALARM_2_R {
25        ALARM_2_R::new(((self.bits >> 2) & 1) != 0)
26    }
27    #[doc = "Bit 3"]
28    #[inline(always)]
29    pub fn alarm_3(&self) -> ALARM_3_R {
30        ALARM_3_R::new(((self.bits >> 3) & 1) != 0)
31    }
32}
33#[doc = "Interrupt status after masking &amp; forcing  
34
35You can [`read`](crate::generic::Reg::read) this register and get [`ints::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
36pub struct INTS_SPEC;
37impl crate::RegisterSpec for INTS_SPEC {
38    type Ux = u32;
39}
40#[doc = "`read()` method returns [`ints::R`](R) reader structure"]
41impl crate::Readable for INTS_SPEC {}
42#[doc = "`reset()` method sets INTS to value 0"]
43impl crate::Resettable for INTS_SPEC {
44    const RESET_VALUE: u32 = 0;
45}