How to add I2S configuration parameters based on Zephyr example?

Hi Friend,

I am using nRF54L15-DK,NCS2.9.1 to drive INMP441 to collect voice. I take the I2S_echo Zephyr example as base. I can found the config as below but it doesn't contain the like CONFIG.SWIDTH,CONFIG.ALIG which are very important for this deviece. 

	config.word_size = SAMPLE_BIT_WIDTH;
	config.channels = NUMBER_OF_CHANNELS;
	config.format = I2S_FMT_DATA_FORMAT_I2S;
	config.options = I2S_OPT_BIT_CLK_MASTER | I2S_OPT_FRAME_CLK_MASTER;
	config.frame_clk_freq = SAMPLE_FREQUENCY;
	config.mem_slab = &mem_slab;
	config.block_size = BLOCK_SIZE;
	config.timeout = TIMEOUT;

I searched the whole file and found i2s_nrfx.c has these defines but now I am struggling how to use these nrfx drivers under Zephyr framwork? Could you give me some guidance and suggestion. Thanks.

Parents Reply Children
No Data
Related