Home
last modified time | relevance | path

Searched refs:saiConfig (Results 1 – 5 of 5) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sai/
Dfsl_sai_sdma.c304 …AI_TransferTxSetConfigSDMA(I2S_Type *base, sai_sdma_handle_t *handle, sai_transceiver_t *saiConfig) in SAI_TransferTxSetConfigSDMA() argument
306 assert((handle != NULL) && (saiConfig != NULL)); in SAI_TransferTxSetConfigSDMA()
309 SAI_TxSetConfig(base, saiConfig); in SAI_TransferTxSetConfigSDMA()
311 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferTxSetConfigSDMA()
314 handle->channel = saiConfig->startChannel; in SAI_TransferTxSetConfigSDMA()
316 if (saiConfig->channelNums == 0U) in SAI_TransferTxSetConfigSDMA()
318 saiConfig->channelNums = 1U; in SAI_TransferTxSetConfigSDMA()
320 handle->channelNums = saiConfig->channelNums; in SAI_TransferTxSetConfigSDMA()
321 handle->channelMask = saiConfig->channelMask; in SAI_TransferTxSetConfigSDMA()
322 if (saiConfig->channelNums > 1U) in SAI_TransferTxSetConfigSDMA()
[all …]
Dfsl_sai_edma.c322 …AI_TransferTxSetConfigEDMA(I2S_Type *base, sai_edma_handle_t *handle, sai_transceiver_t *saiConfig) in SAI_TransferTxSetConfigEDMA() argument
324 assert((handle != NULL) && (saiConfig != NULL)); in SAI_TransferTxSetConfigEDMA()
327 SAI_TxSetConfig(base, saiConfig); in SAI_TransferTxSetConfigEDMA()
332 (saiConfig->channelNums <= 1U) || in SAI_TransferTxSetConfigEDMA()
333 …((saiConfig->channelNums > 1U) && ((saiConfig->fifo.fifoCombine == kSAI_FifoCombineModeEnabledOnWr… in SAI_TransferTxSetConfigEDMA()
334 … (saiConfig->fifo.fifoCombine == kSAI_FifoCombineModeEnabledOnReadWrite)))); in SAI_TransferTxSetConfigEDMA()
338 if (saiConfig->serialData.dataWordLength == 24U) in SAI_TransferTxSetConfigEDMA()
344 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferTxSetConfigEDMA()
347 handle->channel = saiConfig->startChannel; in SAI_TransferTxSetConfigEDMA()
348 handle->channelMask = saiConfig->channelMask; in SAI_TransferTxSetConfigEDMA()
[all …]
Dfsl_sai_sdma.h219 …I_TransferRxSetConfigSDMA(I2S_Type *base, sai_sdma_handle_t *handle, sai_transceiver_t *saiConfig);
228 …I_TransferTxSetConfigSDMA(I2S_Type *base, sai_sdma_handle_t *handle, sai_transceiver_t *saiConfig);
Dfsl_sai_edma.h170 …I_TransferTxSetConfigEDMA(I2S_Type *base, sai_edma_handle_t *handle, sai_transceiver_t *saiConfig);
191 …I_TransferRxSetConfigEDMA(I2S_Type *base, sai_edma_handle_t *handle, sai_transceiver_t *saiConfig);
/hal_nxp-3.5.0/mcux/mcux-sdk/components/audio/
Dfsl_adapter_sai.c235 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()
[all …]