cc2538_pac/gptimer3/
ris.rs1#[doc = "Register `RIS` reader"]
2pub type R = crate::R<RisSpec>;
3#[doc = "Field `TATORIS` reader - GPTM Timer A time-out raw interrupt"]
4pub type TatorisR = crate::BitReader;
5#[doc = "Field `CAMRIS` reader - GPTM Timer A capture match raw interrupt"]
6pub type CamrisR = crate::BitReader;
7#[doc = "Field `CAERIS` reader - GPTM Timer A capture event raw interrupt"]
8pub type CaerisR = crate::BitReader;
9#[doc = "Field `TAMRIS` reader - GPTM Timer A match raw interrupt"]
10pub type TamrisR = crate::BitReader;
11#[doc = "Field `TBTORIS` reader - GPTM Timer B time-out raw interrupt"]
12pub type TbtorisR = crate::BitReader;
13#[doc = "Field `CBMRIS` reader - GPTM Timer B capture match raw interrupt"]
14pub type CbmrisR = crate::BitReader;
15#[doc = "Field `CBERIS` reader - GPTM Timer B capture event raw interrupt"]
16pub type CberisR = crate::BitReader;
17#[doc = "Field `TBMRIS` reader - GPTM Timer B match raw interrupt"]
18pub type TbmrisR = crate::BitReader;
19impl R {
20 #[doc = "Bit 0 - GPTM Timer A time-out raw interrupt"]
21 #[inline(always)]
22 pub fn tatoris(&self) -> TatorisR {
23 TatorisR::new((self.bits & 1) != 0)
24 }
25 #[doc = "Bit 1 - GPTM Timer A capture match raw interrupt"]
26 #[inline(always)]
27 pub fn camris(&self) -> CamrisR {
28 CamrisR::new(((self.bits >> 1) & 1) != 0)
29 }
30 #[doc = "Bit 2 - GPTM Timer A capture event raw interrupt"]
31 #[inline(always)]
32 pub fn caeris(&self) -> CaerisR {
33 CaerisR::new(((self.bits >> 2) & 1) != 0)
34 }
35 #[doc = "Bit 4 - GPTM Timer A match raw interrupt"]
36 #[inline(always)]
37 pub fn tamris(&self) -> TamrisR {
38 TamrisR::new(((self.bits >> 4) & 1) != 0)
39 }
40 #[doc = "Bit 8 - GPTM Timer B time-out raw interrupt"]
41 #[inline(always)]
42 pub fn tbtoris(&self) -> TbtorisR {
43 TbtorisR::new(((self.bits >> 8) & 1) != 0)
44 }
45 #[doc = "Bit 9 - GPTM Timer B capture match raw interrupt"]
46 #[inline(always)]
47 pub fn cbmris(&self) -> CbmrisR {
48 CbmrisR::new(((self.bits >> 9) & 1) != 0)
49 }
50 #[doc = "Bit 10 - GPTM Timer B capture event raw interrupt"]
51 #[inline(always)]
52 pub fn cberis(&self) -> CberisR {
53 CberisR::new(((self.bits >> 10) & 1) != 0)
54 }
55 #[doc = "Bit 11 - GPTM Timer B match raw interrupt"]
56 #[inline(always)]
57 pub fn tbmris(&self) -> TbmrisR {
58 TbmrisR::new(((self.bits >> 11) & 1) != 0)
59 }
60}
61#[doc = "GPTM raw interrupt status This register shows the state of the GPTM internal interrupt signal. These bits are set whether or not the interrupt is masked in the IMR register. Each bit can be cleared by writing 1 to its corresponding bit in ICR.\n\nYou can [`read`](crate::Reg::read) this register and get [`ris::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
62pub struct RisSpec;
63impl crate::RegisterSpec for RisSpec {
64 type Ux = u32;
65}
66#[doc = "`read()` method returns [`ris::R`](R) reader structure"]
67impl crate::Readable for RisSpec {}
68#[doc = "`reset()` method sets RIS to value 0"]
69impl crate::Resettable for RisSpec {
70 const RESET_VALUE: u32 = 0;
71}