STM32H723 I2S or SAI
Hi,
I need to use the I2S (or SAI) interface to connect a codec stereo working at 48KHz, 32bit word length and I2S connection; when I configure the multimedia I can select the SAI interface (SAI1 or SAI4) or one of the I2S interface available.
Which are the differences between them ? (I can configure the SAI as a I2S...)
Another question is:
I would like to use the DMA for the data transfers, for example using the I2S and the following HAL function:
HAL_StatusTypeDef HAL_I2SEx_TransmitReceive_DMA(I2S_HandleTypeDef *hi2s, const uint16_t *pTxData, uint16_t *pRxData,
uint16_t Size)
What I need to understand is: - in what way the function works, for example in what way the stereo data are saved in the data buffer (Tx and Rx)- what happens when the codec send and receive data of 32bit length
Thank you, Luigi
