How to write on external IC's registers connected to the SPI2 line of STM32F407VG MCU?
Hello everybody,
I need to write some registers of an integrated circuit connected to an STM32F407VG MCU by the SPI2 line.
I found these two functions:
-SPI_I2S_ReceiveData()
-SPI_I2S_SendData()
which documentation can be found at
I just didn't get how to tell the function which register I want to write to, since the SPI_I2S_SendData() accepts only 2 parameters: SPI line number (e.g. SPI1, SPI2, SPI3) and the data to be transmitted.
Any help is highly appreciated.
Thank you,
best regards,
Lorenzo
#register #spi #firmware #data