2018-12-04 08:10 AM
Hi,
I have an eternal codec that sends data over I2S to a STM32L4 board (SensorTile with Cradle Expansion). Could anyone help me with the functions or sample code to configure the SAI port for I2S and reading the data from the Codec.
2018-12-11 11:05 AM
I set up the SAI port and am using the following functions:
uint8_t data[256];
HAL_SAI_Receive(&hsai_BlockA2, data, SAI_DATASIZE_16, 100 );
USBD_CDC_SetTxBuffer(&hUsbDeviceFS, data, sizeof(data));
USBD_CDC_TransmitPacket(&hUsbDeviceFS);
and reading the digital data on the computer.
I am unable to decipher the I2S serial data. Can anyone guide me?