1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#[doc = "Register `ITLINE6` reader"]
pub struct R(crate::R<ITLINE6_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<ITLINE6_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<ITLINE6_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<ITLINE6_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `EXTI2` reader - EXTI2"]
pub type EXTI2_R = crate::BitReader<bool>;
#[doc = "Field `EXTI3` reader - EXTI3"]
pub type EXTI3_R = crate::BitReader<bool>;
impl R {
#[doc = "Bit 0 - EXTI2"]
#[inline(always)]
pub fn exti2(&self) -> EXTI2_R {
EXTI2_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - EXTI3"]
#[inline(always)]
pub fn exti3(&self) -> EXTI3_R {
EXTI3_R::new(((self.bits >> 1) & 1) != 0)
}
}
#[doc = "interrupt line 6 status register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [itline6](index.html) module"]
pub struct ITLINE6_SPEC;
impl crate::RegisterSpec for ITLINE6_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [itline6::R](R) reader structure"]
impl crate::Readable for ITLINE6_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets ITLINE6 to value 0"]
impl crate::Resettable for ITLINE6_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}