zynq-rs/src/eth/phy/mod.rs

9 lines
185 B
Rust
Raw Normal View History

2019-05-30 08:42:42 +08:00
pub trait PhyAccess {
fn read_phy(&mut self, addr: u8, reg: u8) -> u16;
fn write_phy(&mut self, addr: u8, reg: u8, data: u16);
}
pub trait PhyDevice {
fn init() -> Self;
}