cadence-macb ethernet Rust driver on SiFive FU740 board.
Initialize ethernet driver ``` pub struct MEM; impl MemMapping for MEM { fn dmaalloccoherent(pages: usize) -> usize { ... } fn dmafreecoherent(paddr: usize, pages: usize) { ... } }
let mut macbdevice = cadencemacb::eth_macb::open::
Sending network packets ``` cadencemacb::ethmacbops::macbsend(&mut macb_device, &packet);
```
Receiving network packets ``` cadencemacb::ethmacbops::macbrecv(&mut macbdevice, &mut rxbuffer);
```