Function w5500_ll::reset [−][src]
pub fn reset<P, D, E>(pin: &mut P, delay: &mut D) -> Result<(), E> where
P: OutputPin<Error = E>,
D: DelayMs<u8>,
Expand description
Reset the W5500 using the reset pin.
This function performs the following sequence:
- Set the reset pin low.
- Wait 1 ms (2x longer than the minimum reset cycle time of 500 µs).
- Set the reset pin high.
- Wait 2 ms (2x longer than the maximum PLL lock time of 1 ms).
Example
w5500_ll::reset(&mut reset_pin, &mut delay)?;