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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#[doc = "Register `C2TOC1SR` reader"]
pub struct R(crate::R<C2TOC1SR_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<C2TOC1SR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<C2TOC1SR_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<C2TOC1SR_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `CH6F` reader - processor 2 transmit to process 1 Receive channel 6 status flag"]
pub type CH6F_R = crate::BitReader<bool>;
#[doc = "Field `CH5F` reader - processor 2 transmit to process 1 Receive channel 5 status flag"]
pub type CH5F_R = crate::BitReader<bool>;
#[doc = "Field `CH4F` reader - processor 2 transmit to process 1 Receive channel 4 status flag"]
pub type CH4F_R = crate::BitReader<bool>;
#[doc = "Field `CH3F` reader - processor 2 transmit to process 1 Receive channel 3 status flag"]
pub type CH3F_R = crate::BitReader<bool>;
#[doc = "Field `CH2F` reader - processor 2 transmit to process 1 Receive channel 2 status flag"]
pub type CH2F_R = crate::BitReader<bool>;
#[doc = "Field `CH1F` reader - processor 2 transmit to process 1 Receive channel 1 status flag"]
pub type CH1F_R = crate::BitReader<bool>;
impl R {
    #[doc = "Bit 5 - processor 2 transmit to process 1 Receive channel 6 status flag"]
    #[inline(always)]
    pub fn ch6f(&self) -> CH6F_R {
        CH6F_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 4 - processor 2 transmit to process 1 Receive channel 5 status flag"]
    #[inline(always)]
    pub fn ch5f(&self) -> CH5F_R {
        CH5F_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 3 - processor 2 transmit to process 1 Receive channel 4 status flag"]
    #[inline(always)]
    pub fn ch4f(&self) -> CH4F_R {
        CH4F_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 2 - processor 2 transmit to process 1 Receive channel 3 status flag"]
    #[inline(always)]
    pub fn ch3f(&self) -> CH3F_R {
        CH3F_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 1 - processor 2 transmit to process 1 Receive channel 2 status flag"]
    #[inline(always)]
    pub fn ch2f(&self) -> CH2F_R {
        CH2F_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 0 - processor 2 transmit to process 1 Receive channel 1 status flag"]
    #[inline(always)]
    pub fn ch1f(&self) -> CH1F_R {
        CH1F_R::new((self.bits & 1) != 0)
    }
}
#[doc = "CPU2 to CPU1 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 [c2toc1sr](index.html) module"]
pub struct C2TOC1SR_SPEC;
impl crate::RegisterSpec for C2TOC1SR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [c2toc1sr::R](R) reader structure"]
impl crate::Readable for C2TOC1SR_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets C2TOC1SR to value 0"]
impl crate::Resettable for C2TOC1SR_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}