25.2.3.2 I/O Lines and Connections

The SPI signals (MOSI, MISO, SCK, SS) are either input or outputs, depending on whether the SPI is in Master or Slave Mode, as described in the Signal Description.

Using the I/O lines requires configuration of the I/O pins.