I'm relatively new to ChibiOS, and new to ChibiOS 3.x, so please forgive me my newbie questions.
Now I'm trying to use STM32F429 with UDA1380 codec via I2S and I have found no documentation about how to do this. Yes, I know about auto-made documentation, but I have not found nor examples suitable for using, neither best practices docs.
In example (STM32F4xx/I2S) I have found some config, and some exchange process from I2S chip to MCU, but I cannot found complete docs, how to configure I2S, and what is I2SConfig (ok, second param in documentation is tx_buffer, but it is i2s_rx_buf in example).
So, it is for receiving audio or for sending?
Why palSetPadMode is called after I2S was started? Is it mistake, or it does not matter, or there are some reasons to do it this way?
It calls i2sStartExchange() function, and i2sStopExchange() when pressing a button, and, as I understand, i2sStartExchange() does exchange till i2sStopExchange() will be called. But what is i2sStartExchangeContinuous() then?
There is i2scallback() function in example that does nothing, so is it for receiving or sending or both?
What does this example, at least?!
I2SConfig have first 'mode' field. In documentation I have found that it is 'I2S mode selection' and reference to header file (ok, mode is i2smode_t).Yet another click on it and we know that it is have uint32_t type. OK, but what should I put here? Which variants? What does mean every variant? What important I have to know to use each of them (do not forget to call function doWhatINeedSuccessfully() after i2sStart(), for example
Sorry for so many questions, may be there is a some hidden documentation pages, where I can found answers?
It is not for I2S only, but for other subsystems too..
Thank you in advance!