SPI for Simulink

Hi.
How to write block for Simulink / Matlab to be able to communicate on the interface I2C or SPI? It does this in Arduino Target, but for the interface UART.

Thanks in advance
Oleg