atsam4lc4b_pac/usbc/
uhinteclr.rs

1#[doc = "Register `UHINTECLR` writer"]
2pub struct W(crate::W<UHINTECLR_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<UHINTECLR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<UHINTECLR_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<UHINTECLR_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `DCONNIEC` writer - DCONNIE Clear"]
23pub type DCONNIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
24#[doc = "Field `DDISCIEC` writer - DDISCIE Clear"]
25pub type DDISCIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
26#[doc = "Field `RSTIEC` writer - RSTIE Clear"]
27pub type RSTIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
28#[doc = "Field `RSMEDIEC` writer - RSMEDIE Clear"]
29pub type RSMEDIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
30#[doc = "Field `RXRSMIEC` writer - RXRSMIE Clear"]
31pub type RXRSMIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
32#[doc = "Field `HSOFIEC` writer - HSOFIE Clear"]
33pub type HSOFIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
34#[doc = "Field `HWUPIEC` writer - HWUPIE Clear"]
35pub type HWUPIEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
36#[doc = "Field `P0INTEC` writer - P0INTE Clear"]
37pub type P0INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
38#[doc = "Field `P1INTEC` writer - P1INTE Clear"]
39pub type P1INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
40#[doc = "Field `P2INTEC` writer - P2INTE Clear"]
41pub type P2INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
42#[doc = "Field `P3INTEC` writer - P3INTE Clear"]
43pub type P3INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
44#[doc = "Field `P4INTEC` writer - P4INTE Clear"]
45pub type P4INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
46#[doc = "Field `P5INTEC` writer - P5INTE Clear"]
47pub type P5INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
48#[doc = "Field `P6INTEC` writer - P6INTE Clear"]
49pub type P6INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
50#[doc = "Field `P7INTEC` writer - P7INTE Clear"]
51pub type P7INTEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, UHINTECLR_SPEC, bool, O>;
52impl W {
53    #[doc = "Bit 0 - DCONNIE Clear"]
54    #[inline(always)]
55    #[must_use]
56    pub fn dconniec(&mut self) -> DCONNIEC_W<0> {
57        DCONNIEC_W::new(self)
58    }
59    #[doc = "Bit 1 - DDISCIE Clear"]
60    #[inline(always)]
61    #[must_use]
62    pub fn ddisciec(&mut self) -> DDISCIEC_W<1> {
63        DDISCIEC_W::new(self)
64    }
65    #[doc = "Bit 2 - RSTIE Clear"]
66    #[inline(always)]
67    #[must_use]
68    pub fn rstiec(&mut self) -> RSTIEC_W<2> {
69        RSTIEC_W::new(self)
70    }
71    #[doc = "Bit 3 - RSMEDIE Clear"]
72    #[inline(always)]
73    #[must_use]
74    pub fn rsmediec(&mut self) -> RSMEDIEC_W<3> {
75        RSMEDIEC_W::new(self)
76    }
77    #[doc = "Bit 4 - RXRSMIE Clear"]
78    #[inline(always)]
79    #[must_use]
80    pub fn rxrsmiec(&mut self) -> RXRSMIEC_W<4> {
81        RXRSMIEC_W::new(self)
82    }
83    #[doc = "Bit 5 - HSOFIE Clear"]
84    #[inline(always)]
85    #[must_use]
86    pub fn hsofiec(&mut self) -> HSOFIEC_W<5> {
87        HSOFIEC_W::new(self)
88    }
89    #[doc = "Bit 6 - HWUPIE Clear"]
90    #[inline(always)]
91    #[must_use]
92    pub fn hwupiec(&mut self) -> HWUPIEC_W<6> {
93        HWUPIEC_W::new(self)
94    }
95    #[doc = "Bit 8 - P0INTE Clear"]
96    #[inline(always)]
97    #[must_use]
98    pub fn p0intec(&mut self) -> P0INTEC_W<8> {
99        P0INTEC_W::new(self)
100    }
101    #[doc = "Bit 9 - P1INTE Clear"]
102    #[inline(always)]
103    #[must_use]
104    pub fn p1intec(&mut self) -> P1INTEC_W<9> {
105        P1INTEC_W::new(self)
106    }
107    #[doc = "Bit 10 - P2INTE Clear"]
108    #[inline(always)]
109    #[must_use]
110    pub fn p2intec(&mut self) -> P2INTEC_W<10> {
111        P2INTEC_W::new(self)
112    }
113    #[doc = "Bit 11 - P3INTE Clear"]
114    #[inline(always)]
115    #[must_use]
116    pub fn p3intec(&mut self) -> P3INTEC_W<11> {
117        P3INTEC_W::new(self)
118    }
119    #[doc = "Bit 12 - P4INTE Clear"]
120    #[inline(always)]
121    #[must_use]
122    pub fn p4intec(&mut self) -> P4INTEC_W<12> {
123        P4INTEC_W::new(self)
124    }
125    #[doc = "Bit 13 - P5INTE Clear"]
126    #[inline(always)]
127    #[must_use]
128    pub fn p5intec(&mut self) -> P5INTEC_W<13> {
129        P5INTEC_W::new(self)
130    }
131    #[doc = "Bit 14 - P6INTE Clear"]
132    #[inline(always)]
133    #[must_use]
134    pub fn p6intec(&mut self) -> P6INTEC_W<14> {
135        P6INTEC_W::new(self)
136    }
137    #[doc = "Bit 15 - P7INTE Clear"]
138    #[inline(always)]
139    #[must_use]
140    pub fn p7intec(&mut self) -> P7INTEC_W<15> {
141        P7INTEC_W::new(self)
142    }
143    #[doc = "Writes raw bits to the register."]
144    #[inline(always)]
145    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
146        self.0.bits(bits);
147        self
148    }
149}
150#[doc = "Host Global Interrupt Enable Clear Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [uhinteclr](index.html) module"]
151pub struct UHINTECLR_SPEC;
152impl crate::RegisterSpec for UHINTECLR_SPEC {
153    type Ux = u32;
154}
155#[doc = "`write(|w| ..)` method takes [uhinteclr::W](W) writer structure"]
156impl crate::Writable for UHINTECLR_SPEC {
157    type Writer = W;
158    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
159    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
160}
161#[doc = "`reset()` method sets UHINTECLR to value 0"]
162impl crate::Resettable for UHINTECLR_SPEC {
163    const RESET_VALUE: Self::Ux = 0;
164}