The source code of the FX3 SDK is given in C:\program Files (x86)\cypress\eZ-USB FX3 SDK\1.3\firmware\fx3_sdk_1_3_3_src.zip
In that you can see the source of the CyU3PI2sSetConfig API in cyu3i2s.c file.
In the code, there is the below statement:
if ((!config->isDma) && (config->padMode !=
This means in the register mode, only right justified padding (CY_U3P_I2S_PAD_MODE_RIGHT_JUSTIFIED) is supported.
This is why the API was returning Bad Argument.
- Madhu Sudhan