aboutsummaryrefslogtreecommitdiff
path: root/embassy-net-adin1110
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2023-12-20 13:34:34 +0100
committerUlf Lilleengen <[email protected]>2023-12-20 13:34:34 +0100
commit51a67cb69ab72e44c6cbeea677c4c6bd1e5c2550 (patch)
treef0781feaa705585447ac00dac7ff7cadb799915d /embassy-net-adin1110
parentb8777eaea2e2f7966c1c0789e261bffcdc2a1be4 (diff)
fix: expose less
Diffstat (limited to 'embassy-net-adin1110')
-rw-r--r--embassy-net-adin1110/src/lib.rs5
-rw-r--r--embassy-net-adin1110/src/phy.rs5
2 files changed, 3 insertions, 7 deletions
diff --git a/embassy-net-adin1110/src/lib.rs b/embassy-net-adin1110/src/lib.rs
index 4dafc8b0f..6ecfa587d 100644
--- a/embassy-net-adin1110/src/lib.rs
+++ b/embassy-net-adin1110/src/lib.rs
@@ -27,8 +27,9 @@ use embedded_hal_async::digital::Wait;
27use embedded_hal_async::spi::{Error, Operation, SpiDevice}; 27use embedded_hal_async::spi::{Error, Operation, SpiDevice};
28use heapless::Vec; 28use heapless::Vec;
29pub use mdio::MdioBus; 29pub use mdio::MdioBus;
30pub use phy::{Phy10BaseT1x, RegsC22, RegsC45}; 30pub use phy::Phy10BaseT1x;
31pub use regs::{Config0, Config2, SpiRegisters as sr, Status0, Status1}; 31use phy::{RegsC22, RegsC45};
32use regs::{Config0, Config2, SpiRegisters as sr, Status0, Status1};
32 33
33use crate::fmt::Bytes; 34use crate::fmt::Bytes;
34use crate::regs::{LedCntrl, LedFunc, LedPol, LedPolarity, SpiHeader}; 35use crate::regs::{LedCntrl, LedFunc, LedPol, LedPolarity, SpiHeader};
diff --git a/embassy-net-adin1110/src/phy.rs b/embassy-net-adin1110/src/phy.rs
index 9966e1f6a..d54d843d2 100644
--- a/embassy-net-adin1110/src/phy.rs
+++ b/embassy-net-adin1110/src/phy.rs
@@ -30,7 +30,6 @@ pub mod RegsC45 {
30 } 30 }
31 31
32 impl DA1 { 32 impl DA1 {
33 #[allow(missing_docs)]
34 #[must_use] 33 #[must_use]
35 pub fn into(self) -> (u8, u16) { 34 pub fn into(self) -> (u8, u16) {
36 (0x01, self as u16) 35 (0x01, self as u16)
@@ -50,7 +49,6 @@ pub mod RegsC45 {
50 } 49 }
51 50
52 impl DA3 { 51 impl DA3 {
53 #[allow(missing_docs)]
54 #[must_use] 52 #[must_use]
55 pub fn into(self) -> (u8, u16) { 53 pub fn into(self) -> (u8, u16) {
56 (0x03, self as u16) 54 (0x03, self as u16)
@@ -66,7 +64,6 @@ pub mod RegsC45 {
66 } 64 }
67 65
68 impl DA7 { 66 impl DA7 {
69 #[allow(missing_docs)]
70 #[must_use] 67 #[must_use]
71 pub fn into(self) -> (u8, u16) { 68 pub fn into(self) -> (u8, u16) {
72 (0x07, self as u16) 69 (0x07, self as u16)
@@ -90,7 +87,6 @@ pub mod RegsC45 {
90 } 87 }
91 88
92 impl DA1E { 89 impl DA1E {
93 #[allow(missing_docs)]
94 #[must_use] 90 #[must_use]
95 pub fn into(self) -> (u8, u16) { 91 pub fn into(self) -> (u8, u16) {
96 (0x1e, self as u16) 92 (0x1e, self as u16)
@@ -108,7 +104,6 @@ pub mod RegsC45 {
108 } 104 }
109 105
110 impl DA1F { 106 impl DA1F {
111 #[allow(missing_docs)]
112 #[must_use] 107 #[must_use]
113 pub fn into(self) -> (u8, u16) { 108 pub fn into(self) -> (u8, u16) {
114 (0x1f, self as u16) 109 (0x1f, self as u16)