To set SPI parameters, use the SPI options. The pins in the SPI0(default) option are the Arduino® header pins mentioned in https://developer.mbed.org/platforms for the selected Nucleo board.
Note
For Arduino Uno R3 compatible boards, the pins D0-D15 can be accessed with 0-15 and pins A0-A5 can be accessed with 16 to 21. Other pins on the board are not supported.
This is the maximum bus speed allowed between SPI interfaces (Master/Slaves).
Specify the pin that connects the master output to the slave input.
Specify the pin that connects the slave output to the master input.
Specify the clock pin for SPI communication.