fix: expose less
This commit is contained in:
parent
b8777eaea2
commit
51a67cb69a
2 changed files with 3 additions and 7 deletions
|
@ -27,8 +27,9 @@ use embedded_hal_async::digital::Wait;
|
|||
use embedded_hal_async::spi::{Error, Operation, SpiDevice};
|
||||
use heapless::Vec;
|
||||
pub use mdio::MdioBus;
|
||||
pub use phy::{Phy10BaseT1x, RegsC22, RegsC45};
|
||||
pub use regs::{Config0, Config2, SpiRegisters as sr, Status0, Status1};
|
||||
pub use phy::Phy10BaseT1x;
|
||||
use phy::{RegsC22, RegsC45};
|
||||
use regs::{Config0, Config2, SpiRegisters as sr, Status0, Status1};
|
||||
|
||||
use crate::fmt::Bytes;
|
||||
use crate::regs::{LedCntrl, LedFunc, LedPol, LedPolarity, SpiHeader};
|
||||
|
|
|
@ -30,7 +30,6 @@ pub mod RegsC45 {
|
|||
}
|
||||
|
||||
impl DA1 {
|
||||
#[allow(missing_docs)]
|
||||
#[must_use]
|
||||
pub fn into(self) -> (u8, u16) {
|
||||
(0x01, self as u16)
|
||||
|
@ -50,7 +49,6 @@ pub mod RegsC45 {
|
|||
}
|
||||
|
||||
impl DA3 {
|
||||
#[allow(missing_docs)]
|
||||
#[must_use]
|
||||
pub fn into(self) -> (u8, u16) {
|
||||
(0x03, self as u16)
|
||||
|
@ -66,7 +64,6 @@ pub mod RegsC45 {
|
|||
}
|
||||
|
||||
impl DA7 {
|
||||
#[allow(missing_docs)]
|
||||
#[must_use]
|
||||
pub fn into(self) -> (u8, u16) {
|
||||
(0x07, self as u16)
|
||||
|
@ -90,7 +87,6 @@ pub mod RegsC45 {
|
|||
}
|
||||
|
||||
impl DA1E {
|
||||
#[allow(missing_docs)]
|
||||
#[must_use]
|
||||
pub fn into(self) -> (u8, u16) {
|
||||
(0x1e, self as u16)
|
||||
|
@ -108,7 +104,6 @@ pub mod RegsC45 {
|
|||
}
|
||||
|
||||
impl DA1F {
|
||||
#[allow(missing_docs)]
|
||||
#[must_use]
|
||||
pub fn into(self) -> (u8, u16) {
|
||||
(0x1f, self as u16)
|
||||
|
|
Loading…
Reference in a new issue