You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sio/spinlock0.rs
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,35 @@ impl From<crate::R<SPINLOCK0_SPEC>> for R {
13
13
R(reader)
14
14
}
15
15
}
16
+
#[doc = "Register `SPINLOCK0` writer"]
17
+
pubstructW(crate::W<SPINLOCK0_SPEC>);
18
+
impl core::ops::DerefforW{
19
+
typeTarget = crate::W<SPINLOCK0_SPEC>;
20
+
#[inline(always)]
21
+
fnderef(&self) -> &Self::Target{
22
+
&self.0
23
+
}
24
+
}
25
+
impl core::ops::DerefMutforW{
26
+
#[inline(always)]
27
+
fnderef_mut(&mutself) -> &mutSelf::Target{
28
+
&mutself.0
29
+
}
30
+
}
31
+
implFrom<crate::W<SPINLOCK0_SPEC>>forW{
32
+
#[inline(always)]
33
+
fnfrom(writer:crate::W<SPINLOCK0_SPEC>) -> Self{
34
+
W(writer)
35
+
}
36
+
}
37
+
implW{
38
+
#[doc = "Writes raw bits to the register."]
39
+
#[inline(always)]
40
+
pubunsafefnbits(&mutself,bits:u32) -> &mutSelf{
41
+
self.0.bits(bits);
42
+
self
43
+
}
44
+
}
16
45
#[doc = "Reading from a spinlock address will:
17
46
- Return 0 if lock is already locked
18
47
- Otherwise return nonzero, and simultaneously claim the lock
@@ -21,7 +50,7 @@ impl From<crate::R<SPINLOCK0_SPEC>> for R {
21
50
If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins.
22
51
The value returned on success is 0x1 << lock number.
23
52
24
-
This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
+
This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
25
54
26
55
For information about available fields see [spinlock0](index.html) module"]
27
56
pubstructSPINLOCK0_SPEC;
@@ -32,6 +61,10 @@ impl crate::RegisterSpec for SPINLOCK0_SPEC {
Copy file name to clipboardExpand all lines: src/sio/spinlock1.rs
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,35 @@ impl From<crate::R<SPINLOCK1_SPEC>> for R {
13
13
R(reader)
14
14
}
15
15
}
16
+
#[doc = "Register `SPINLOCK1` writer"]
17
+
pubstructW(crate::W<SPINLOCK1_SPEC>);
18
+
impl core::ops::DerefforW{
19
+
typeTarget = crate::W<SPINLOCK1_SPEC>;
20
+
#[inline(always)]
21
+
fnderef(&self) -> &Self::Target{
22
+
&self.0
23
+
}
24
+
}
25
+
impl core::ops::DerefMutforW{
26
+
#[inline(always)]
27
+
fnderef_mut(&mutself) -> &mutSelf::Target{
28
+
&mutself.0
29
+
}
30
+
}
31
+
implFrom<crate::W<SPINLOCK1_SPEC>>forW{
32
+
#[inline(always)]
33
+
fnfrom(writer:crate::W<SPINLOCK1_SPEC>) -> Self{
34
+
W(writer)
35
+
}
36
+
}
37
+
implW{
38
+
#[doc = "Writes raw bits to the register."]
39
+
#[inline(always)]
40
+
pubunsafefnbits(&mutself,bits:u32) -> &mutSelf{
41
+
self.0.bits(bits);
42
+
self
43
+
}
44
+
}
16
45
#[doc = "Reading from a spinlock address will:
17
46
- Return 0 if lock is already locked
18
47
- Otherwise return nonzero, and simultaneously claim the lock
@@ -21,7 +50,7 @@ impl From<crate::R<SPINLOCK1_SPEC>> for R {
21
50
If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins.
22
51
The value returned on success is 0x1 << lock number.
23
52
24
-
This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
+
This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
25
54
26
55
For information about available fields see [spinlock1](index.html) module"]
27
56
pubstructSPINLOCK1_SPEC;
@@ -32,6 +61,10 @@ impl crate::RegisterSpec for SPINLOCK1_SPEC {
Copy file name to clipboardExpand all lines: src/sio/spinlock10.rs
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,35 @@ impl From<crate::R<SPINLOCK10_SPEC>> for R {
13
13
R(reader)
14
14
}
15
15
}
16
+
#[doc = "Register `SPINLOCK10` writer"]
17
+
pubstructW(crate::W<SPINLOCK10_SPEC>);
18
+
impl core::ops::DerefforW{
19
+
typeTarget = crate::W<SPINLOCK10_SPEC>;
20
+
#[inline(always)]
21
+
fnderef(&self) -> &Self::Target{
22
+
&self.0
23
+
}
24
+
}
25
+
impl core::ops::DerefMutforW{
26
+
#[inline(always)]
27
+
fnderef_mut(&mutself) -> &mutSelf::Target{
28
+
&mutself.0
29
+
}
30
+
}
31
+
implFrom<crate::W<SPINLOCK10_SPEC>>forW{
32
+
#[inline(always)]
33
+
fnfrom(writer:crate::W<SPINLOCK10_SPEC>) -> Self{
34
+
W(writer)
35
+
}
36
+
}
37
+
implW{
38
+
#[doc = "Writes raw bits to the register."]
39
+
#[inline(always)]
40
+
pubunsafefnbits(&mutself,bits:u32) -> &mutSelf{
41
+
self.0.bits(bits);
42
+
self
43
+
}
44
+
}
16
45
#[doc = "Reading from a spinlock address will:
17
46
- Return 0 if lock is already locked
18
47
- Otherwise return nonzero, and simultaneously claim the lock
@@ -21,7 +50,7 @@ impl From<crate::R<SPINLOCK10_SPEC>> for R {
21
50
If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins.
22
51
The value returned on success is 0x1 << lock number.
23
52
24
-
This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
+
This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
25
54
26
55
For information about available fields see [spinlock10](index.html) module"]
27
56
pubstructSPINLOCK10_SPEC;
@@ -32,6 +61,10 @@ impl crate::RegisterSpec for SPINLOCK10_SPEC {
Copy file name to clipboardExpand all lines: src/sio/spinlock11.rs
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,35 @@ impl From<crate::R<SPINLOCK11_SPEC>> for R {
13
13
R(reader)
14
14
}
15
15
}
16
+
#[doc = "Register `SPINLOCK11` writer"]
17
+
pubstructW(crate::W<SPINLOCK11_SPEC>);
18
+
impl core::ops::DerefforW{
19
+
typeTarget = crate::W<SPINLOCK11_SPEC>;
20
+
#[inline(always)]
21
+
fnderef(&self) -> &Self::Target{
22
+
&self.0
23
+
}
24
+
}
25
+
impl core::ops::DerefMutforW{
26
+
#[inline(always)]
27
+
fnderef_mut(&mutself) -> &mutSelf::Target{
28
+
&mutself.0
29
+
}
30
+
}
31
+
implFrom<crate::W<SPINLOCK11_SPEC>>forW{
32
+
#[inline(always)]
33
+
fnfrom(writer:crate::W<SPINLOCK11_SPEC>) -> Self{
34
+
W(writer)
35
+
}
36
+
}
37
+
implW{
38
+
#[doc = "Writes raw bits to the register."]
39
+
#[inline(always)]
40
+
pubunsafefnbits(&mutself,bits:u32) -> &mutSelf{
41
+
self.0.bits(bits);
42
+
self
43
+
}
44
+
}
16
45
#[doc = "Reading from a spinlock address will:
17
46
- Return 0 if lock is already locked
18
47
- Otherwise return nonzero, and simultaneously claim the lock
@@ -21,7 +50,7 @@ impl From<crate::R<SPINLOCK11_SPEC>> for R {
21
50
If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins.
22
51
The value returned on success is 0x1 << lock number.
23
52
24
-
This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
+
This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
25
54
26
55
For information about available fields see [spinlock11](index.html) module"]
27
56
pubstructSPINLOCK11_SPEC;
@@ -32,6 +61,10 @@ impl crate::RegisterSpec for SPINLOCK11_SPEC {
Copy file name to clipboardExpand all lines: src/sio/spinlock12.rs
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,35 @@ impl From<crate::R<SPINLOCK12_SPEC>> for R {
13
13
R(reader)
14
14
}
15
15
}
16
+
#[doc = "Register `SPINLOCK12` writer"]
17
+
pubstructW(crate::W<SPINLOCK12_SPEC>);
18
+
impl core::ops::DerefforW{
19
+
typeTarget = crate::W<SPINLOCK12_SPEC>;
20
+
#[inline(always)]
21
+
fnderef(&self) -> &Self::Target{
22
+
&self.0
23
+
}
24
+
}
25
+
impl core::ops::DerefMutforW{
26
+
#[inline(always)]
27
+
fnderef_mut(&mutself) -> &mutSelf::Target{
28
+
&mutself.0
29
+
}
30
+
}
31
+
implFrom<crate::W<SPINLOCK12_SPEC>>forW{
32
+
#[inline(always)]
33
+
fnfrom(writer:crate::W<SPINLOCK12_SPEC>) -> Self{
34
+
W(writer)
35
+
}
36
+
}
37
+
implW{
38
+
#[doc = "Writes raw bits to the register."]
39
+
#[inline(always)]
40
+
pubunsafefnbits(&mutself,bits:u32) -> &mutSelf{
41
+
self.0.bits(bits);
42
+
self
43
+
}
44
+
}
16
45
#[doc = "Reading from a spinlock address will:
17
46
- Return 0 if lock is already locked
18
47
- Otherwise return nonzero, and simultaneously claim the lock
@@ -21,7 +50,7 @@ impl From<crate::R<SPINLOCK12_SPEC>> for R {
21
50
If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins.
22
51
The value returned on success is 0x1 << lock number.
23
52
24
-
This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
+
This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
25
54
26
55
For information about available fields see [spinlock12](index.html) module"]
27
56
pubstructSPINLOCK12_SPEC;
@@ -32,6 +61,10 @@ impl crate::RegisterSpec for SPINLOCK12_SPEC {
Copy file name to clipboardExpand all lines: src/sio/spinlock13.rs
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,35 @@ impl From<crate::R<SPINLOCK13_SPEC>> for R {
13
13
R(reader)
14
14
}
15
15
}
16
+
#[doc = "Register `SPINLOCK13` writer"]
17
+
pubstructW(crate::W<SPINLOCK13_SPEC>);
18
+
impl core::ops::DerefforW{
19
+
typeTarget = crate::W<SPINLOCK13_SPEC>;
20
+
#[inline(always)]
21
+
fnderef(&self) -> &Self::Target{
22
+
&self.0
23
+
}
24
+
}
25
+
impl core::ops::DerefMutforW{
26
+
#[inline(always)]
27
+
fnderef_mut(&mutself) -> &mutSelf::Target{
28
+
&mutself.0
29
+
}
30
+
}
31
+
implFrom<crate::W<SPINLOCK13_SPEC>>forW{
32
+
#[inline(always)]
33
+
fnfrom(writer:crate::W<SPINLOCK13_SPEC>) -> Self{
34
+
W(writer)
35
+
}
36
+
}
37
+
implW{
38
+
#[doc = "Writes raw bits to the register."]
39
+
#[inline(always)]
40
+
pubunsafefnbits(&mutself,bits:u32) -> &mutSelf{
41
+
self.0.bits(bits);
42
+
self
43
+
}
44
+
}
16
45
#[doc = "Reading from a spinlock address will:
17
46
- Return 0 if lock is already locked
18
47
- Otherwise return nonzero, and simultaneously claim the lock
@@ -21,7 +50,7 @@ impl From<crate::R<SPINLOCK13_SPEC>> for R {
21
50
If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins.
22
51
The value returned on success is 0x1 << lock number.
23
52
24
-
This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
+
This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
25
54
26
55
For information about available fields see [spinlock13](index.html) module"]
27
56
pubstructSPINLOCK13_SPEC;
@@ -32,6 +61,10 @@ impl crate::RegisterSpec for SPINLOCK13_SPEC {
Copy file name to clipboardExpand all lines: src/sio/spinlock14.rs
+34-1Lines changed: 34 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,35 @@ impl From<crate::R<SPINLOCK14_SPEC>> for R {
13
13
R(reader)
14
14
}
15
15
}
16
+
#[doc = "Register `SPINLOCK14` writer"]
17
+
pubstructW(crate::W<SPINLOCK14_SPEC>);
18
+
impl core::ops::DerefforW{
19
+
typeTarget = crate::W<SPINLOCK14_SPEC>;
20
+
#[inline(always)]
21
+
fnderef(&self) -> &Self::Target{
22
+
&self.0
23
+
}
24
+
}
25
+
impl core::ops::DerefMutforW{
26
+
#[inline(always)]
27
+
fnderef_mut(&mutself) -> &mutSelf::Target{
28
+
&mutself.0
29
+
}
30
+
}
31
+
implFrom<crate::W<SPINLOCK14_SPEC>>forW{
32
+
#[inline(always)]
33
+
fnfrom(writer:crate::W<SPINLOCK14_SPEC>) -> Self{
34
+
W(writer)
35
+
}
36
+
}
37
+
implW{
38
+
#[doc = "Writes raw bits to the register."]
39
+
#[inline(always)]
40
+
pubunsafefnbits(&mutself,bits:u32) -> &mutSelf{
41
+
self.0.bits(bits);
42
+
self
43
+
}
44
+
}
16
45
#[doc = "Reading from a spinlock address will:
17
46
- Return 0 if lock is already locked
18
47
- Otherwise return nonzero, and simultaneously claim the lock
@@ -21,7 +50,7 @@ impl From<crate::R<SPINLOCK14_SPEC>> for R {
21
50
If core 0 and core 1 attempt to claim the same lock simultaneously, core 0 wins.
22
51
The value returned on success is 0x1 << lock number.
23
52
24
-
This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
+
This register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
25
54
26
55
For information about available fields see [spinlock14](index.html) module"]
27
56
pubstructSPINLOCK14_SPEC;
@@ -32,6 +61,10 @@ impl crate::RegisterSpec for SPINLOCK14_SPEC {
0 commit comments