Expand description

Ethernet comms

Modules

Ethernet II protocol per IEEE 802.3 Diagram at https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II

Internet Protocol message header construction

User Datagram Protocol

Structs

IP and UDP require their data to be a multiple of 4 bytes (32-bit words)

All protocols’ headers, data, and frames must be able to convert to byte array in order to be consumed by EMAC/PHY drivers for transmission TODO: bring this impl back in once const generic exprs in trait bounds no longer break the compiler MAC Addresses & methods for converting between common formats Locally-administered addresses are [0x02, …], [0x06, …], [0x0A, …], [0x0E, …]

Functions

Return blank checksum; real checksum must be calculated by hardware