Lines Matching refs:saiConfig

235     sai_transceiver_t saiConfig;  in HAL_AudioCommonInit()  local
298 …SAI_GetClassicI2SConfig(&saiConfig, (sai_word_width_t)config->bitWidth, kSAI_Stereo, featureConfig… in HAL_AudioCommonInit()
311 saiConfig.fifo.fifoCombine = kSAI_FifoCombineModeEnabledOnWrite; in HAL_AudioCommonInit()
318 saiConfig.fifo.fifoWatermark = (uint8_t)config->fifoWatermark; in HAL_AudioCommonInit()
322saiConfig.fifo.fifoWatermark = (uint8_t)FSL_FEATURE_SAI_FIFO_COUNTn(s_i2sBases[audioHandle->instan… in HAL_AudioCommonInit()
328 saiConfig.bitClock.bclkPolarity = kSAI_SampleOnFallingEdge; in HAL_AudioCommonInit()
332 saiConfig.bitClock.bclkPolarity = kSAI_SampleOnRisingEdge; in HAL_AudioCommonInit()
339 saiConfig.frameSync.frameSyncWidth = config->bitWidth >> 1U; in HAL_AudioCommonInit()
340 saiConfig.serialData.dataWordNum = 1U; in HAL_AudioCommonInit()
345 saiConfig.frameSync.frameSyncWidth = config->bitWidth; in HAL_AudioCommonInit()
346 saiConfig.serialData.dataWordNum = 2U; in HAL_AudioCommonInit()
347 saiConfig.serialData.dataMaskedWord = 0x1UL << channelNum; in HAL_AudioCommonInit()
352 saiConfig.frameSync.frameSyncWidth = config->bitWidth * channelNum >> 1U; in HAL_AudioCommonInit()
353 saiConfig.serialData.dataWordNum = channelNum; in HAL_AudioCommonInit()
358 saiConfig.syncMode = kSAI_ModeAsync; in HAL_AudioCommonInit()
362 saiConfig.syncMode = kSAI_ModeSync; in HAL_AudioCommonInit()
368 saiConfig.masterSlave = kSAI_Master; in HAL_AudioCommonInit()
372 saiConfig.masterSlave = kSAI_Slave; in HAL_AudioCommonInit()
376 saiConfig.masterSlave = kSAI_Bclk_Master_FrameSync_Slave; in HAL_AudioCommonInit()
380 saiConfig.masterSlave = kSAI_Bclk_Slave_FrameSync_Master; in HAL_AudioCommonInit()
391 saiConfig.frameSync.frameSyncEarly = true; in HAL_AudioCommonInit()
392 saiConfig.frameSync.frameSyncPolarity = kSAI_PolarityActiveLow; in HAL_AudioCommonInit()
396 saiConfig.frameSync.frameSyncEarly = false; in HAL_AudioCommonInit()
397 saiConfig.frameSync.frameSyncPolarity = kSAI_PolarityActiveHigh; in HAL_AudioCommonInit()
401 saiConfig.frameSync.frameSyncEarly = false; in HAL_AudioCommonInit()
402 saiConfig.frameSync.frameSyncPolarity = kSAI_PolarityActiveHigh; in HAL_AudioCommonInit()
406 saiConfig.frameSync.frameSyncEarly = true; in HAL_AudioCommonInit()
407 saiConfig.frameSync.frameSyncPolarity = kSAI_PolarityActiveHigh; in HAL_AudioCommonInit()
410 saiConfig.frameSync.frameSyncWidth = 1; in HAL_AudioCommonInit()
414 saiConfig.frameSync.frameSyncWidth = config->bitWidth; in HAL_AudioCommonInit()
423 saiConfig.frameSync.frameSyncEarly = false; in HAL_AudioCommonInit()
424 saiConfig.frameSync.frameSyncPolarity = kSAI_PolarityActiveHigh; in HAL_AudioCommonInit()
427 saiConfig.frameSync.frameSyncWidth = 1; in HAL_AudioCommonInit()
431 saiConfig.frameSync.frameSyncWidth = config->bitWidth; in HAL_AudioCommonInit()
519 …ransferTxSetConfigEDMA(s_i2sBases[audioHandle->instance], &audioHandle->xferDmaHandle, &saiConfig); in HAL_AudioCommonInit()
525 …ransferRxSetConfigEDMA(s_i2sBases[audioHandle->instance], &audioHandle->xferDmaHandle, &saiConfig); in HAL_AudioCommonInit()
544 …TransferTxSetConfigDMA(s_i2sBases[audioHandle->instance], &audioHandle->xferDmaHandle, &saiConfig); in HAL_AudioCommonInit()
550 …TransferRxSetConfigDMA(s_i2sBases[audioHandle->instance], &audioHandle->xferDmaHandle, &saiConfig); in HAL_AudioCommonInit()