w5500 0.6.0

W5500 IoT Controller implementation.
Documentation
use crate::bus::Bus;
use crate::host::Host;
use crate::MacAddress;

#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct Dhcp {
    // settings: HostConfig,
    // current: HostConfig,
}

impl Dhcp {
    pub fn new(_mac: MacAddress) -> Self {
        // let settings = HostConfig {
        //     mac,
        //     ..HostConfig::default()
        // };
        Self {
            // settings,
            // current: HostConfig::default(),
        }
    }
}

impl Host for Dhcp {
    /// Gets (if necessary) and sets the host settings on the chip
    fn refresh<SpiBus: Bus>(&mut self, _bus: &mut SpiBus) -> Result<(), SpiBus::Error> {
        // TODO actually negotiate settings from DHCP
        // TODO figure out how should receive socket for DHCP negotiations
        Ok(())
    }
}