Write data to registers of an SPI slave device
Simulink Support Package for Raspberry Pi Hardware / Communication

The SPI Register Write block writes the block input data to specified register address. To open the pin map of the Raspberry Pi board, click the View pin map button.
For more information on SPI communication, refer to Support SPI Communicationand The Raspberry Pi SPI Interface.