pub fn with_frequency(mut self, frequency: Rate) -> Self {
        self.frequency = frequency;
        self.reg = self.recalculate();

        self
    }
Set the frequency of the SPI bus clock.
esp-hal/src/spi/master.rs