pub fn with_mosi(mut self, mosi: impl PeripheralOutput<'d>) -> Self {
        self.pins.mosi_pin = self.connect_output_pin(mosi, self.driver().info.mosi);

        self
    }
Assign the MOSI (Master Out Slave In) pin for the SPI instance.

Enables output functionality for the pin, and connects it as the MOSI
signal. You want to use this for full-duplex SPI or
if you intend to use [DataMode::SingleTwoDataLines].

Disconnects the previous pin that was assigned with `with_mosi` or
`with_sio0`.
esp-hal/src/spi/master.rs