cyt3bb_a/m0/eth0/
designcfg_debug7.rs

1#[doc = "Register `DESIGNCFG_DEBUG7` reader"]
2pub struct R(crate::R<DESIGNCFG_DEBUG7_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<DESIGNCFG_DEBUG7_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<DESIGNCFG_DEBUG7_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<DESIGNCFG_DEBUG7_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q0` reader - Takes the value of the `gem_tx_pbuf_num_segments_q0 DEFINE"]
17pub type X_PBUF_NUM_SEGMENTS_Q0_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q1` reader - Takes the value of the `gem_tx_pbuf_num_segments_q1 DEFINE"]
19pub type X_PBUF_NUM_SEGMENTS_Q1_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q2` reader - Takes the value of the `gem_tx_pbuf_num_segments_q2 DEFINE"]
21pub type X_PBUF_NUM_SEGMENTS_Q2_R = crate::FieldReader<u8, u8>;
22#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q3` reader - Takes the value of the `gem_tx_pbuf_num_segments_q3 DEFINE"]
23pub type X_PBUF_NUM_SEGMENTS_Q3_R = crate::FieldReader<u8, u8>;
24#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q4` reader - Takes the value of the `gem_tx_pbuf_num_segments_q4 DEFINE"]
25pub type X_PBUF_NUM_SEGMENTS_Q4_R = crate::FieldReader<u8, u8>;
26#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q5` reader - Takes the value of the `gem_tx_pbuf_num_segments_q5 DEFINE"]
27pub type X_PBUF_NUM_SEGMENTS_Q5_R = crate::FieldReader<u8, u8>;
28#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q6` reader - Takes the value of the `gem_tx_pbuf_num_segments_q6 DEFINE"]
29pub type X_PBUF_NUM_SEGMENTS_Q6_R = crate::FieldReader<u8, u8>;
30#[doc = "Field `X_PBUF_NUM_SEGMENTS_Q7` reader - Takes the value of the `gem_tx_pbuf_num_segments_q7 DEFINE"]
31pub type X_PBUF_NUM_SEGMENTS_Q7_R = crate::FieldReader<u8, u8>;
32impl R {
33    #[doc = "Bits 0:3 - Takes the value of the `gem_tx_pbuf_num_segments_q0 DEFINE"]
34    #[inline(always)]
35    pub fn x_pbuf_num_segments_q0(&self) -> X_PBUF_NUM_SEGMENTS_Q0_R {
36        X_PBUF_NUM_SEGMENTS_Q0_R::new((self.bits & 0x0f) as u8)
37    }
38    #[doc = "Bits 4:7 - Takes the value of the `gem_tx_pbuf_num_segments_q1 DEFINE"]
39    #[inline(always)]
40    pub fn x_pbuf_num_segments_q1(&self) -> X_PBUF_NUM_SEGMENTS_Q1_R {
41        X_PBUF_NUM_SEGMENTS_Q1_R::new(((self.bits >> 4) & 0x0f) as u8)
42    }
43    #[doc = "Bits 8:11 - Takes the value of the `gem_tx_pbuf_num_segments_q2 DEFINE"]
44    #[inline(always)]
45    pub fn x_pbuf_num_segments_q2(&self) -> X_PBUF_NUM_SEGMENTS_Q2_R {
46        X_PBUF_NUM_SEGMENTS_Q2_R::new(((self.bits >> 8) & 0x0f) as u8)
47    }
48    #[doc = "Bits 12:15 - Takes the value of the `gem_tx_pbuf_num_segments_q3 DEFINE"]
49    #[inline(always)]
50    pub fn x_pbuf_num_segments_q3(&self) -> X_PBUF_NUM_SEGMENTS_Q3_R {
51        X_PBUF_NUM_SEGMENTS_Q3_R::new(((self.bits >> 12) & 0x0f) as u8)
52    }
53    #[doc = "Bits 16:19 - Takes the value of the `gem_tx_pbuf_num_segments_q4 DEFINE"]
54    #[inline(always)]
55    pub fn x_pbuf_num_segments_q4(&self) -> X_PBUF_NUM_SEGMENTS_Q4_R {
56        X_PBUF_NUM_SEGMENTS_Q4_R::new(((self.bits >> 16) & 0x0f) as u8)
57    }
58    #[doc = "Bits 20:23 - Takes the value of the `gem_tx_pbuf_num_segments_q5 DEFINE"]
59    #[inline(always)]
60    pub fn x_pbuf_num_segments_q5(&self) -> X_PBUF_NUM_SEGMENTS_Q5_R {
61        X_PBUF_NUM_SEGMENTS_Q5_R::new(((self.bits >> 20) & 0x0f) as u8)
62    }
63    #[doc = "Bits 24:27 - Takes the value of the `gem_tx_pbuf_num_segments_q6 DEFINE"]
64    #[inline(always)]
65    pub fn x_pbuf_num_segments_q6(&self) -> X_PBUF_NUM_SEGMENTS_Q6_R {
66        X_PBUF_NUM_SEGMENTS_Q6_R::new(((self.bits >> 24) & 0x0f) as u8)
67    }
68    #[doc = "Bits 28:31 - Takes the value of the `gem_tx_pbuf_num_segments_q7 DEFINE"]
69    #[inline(always)]
70    pub fn x_pbuf_num_segments_q7(&self) -> X_PBUF_NUM_SEGMENTS_Q7_R {
71        X_PBUF_NUM_SEGMENTS_Q7_R::new(((self.bits >> 28) & 0x0f) as u8)
72    }
73}
74#[doc = "Design Configuration Register 7\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 [designcfg_debug7](index.html) module"]
75pub struct DESIGNCFG_DEBUG7_SPEC;
76impl crate::RegisterSpec for DESIGNCFG_DEBUG7_SPEC {
77    type Ux = u32;
78}
79#[doc = "`read()` method returns [designcfg_debug7::R](R) reader structure"]
80impl crate::Readable for DESIGNCFG_DEBUG7_SPEC {
81    type Reader = R;
82}
83#[doc = "`reset()` method sets DESIGNCFG_DEBUG7 to value 0x01"]
84impl crate::Resettable for DESIGNCFG_DEBUG7_SPEC {
85    const RESET_VALUE: Self::Ux = 0x01;
86}