Lines Matching refs:saiConfig
304 …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()
325 …handle->fifoOffset = ((saiConfig->endChannel - saiConfig->startChannel) * 4U) / (saiConfig->channe… in SAI_TransferTxSetConfigSDMA()
333 …handle->count = ((uint32_t)FSL_FEATURE_SAI_FIFO_COUNTn(base) - (uint32_t)saiConfig->fifo.fifoWater… in SAI_TransferTxSetConfigSDMA()
334 (uint32_t)saiConfig->channelNums; in SAI_TransferTxSetConfigSDMA()
336 handle->count = 1U * saiConfig->channelNums; in SAI_TransferTxSetConfigSDMA()
417 …AI_TransferRxSetConfigSDMA(I2S_Type *base, sai_sdma_handle_t *handle, sai_transceiver_t *saiConfig) in SAI_TransferRxSetConfigSDMA() argument
419 assert((handle != NULL) && (saiConfig != NULL)); in SAI_TransferRxSetConfigSDMA()
422 SAI_RxSetConfig(base, saiConfig); in SAI_TransferRxSetConfigSDMA()
424 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferRxSetConfigSDMA()
427 if (saiConfig->channelNums == 0U) in SAI_TransferRxSetConfigSDMA()
429 saiConfig->channelNums = 1U; in SAI_TransferRxSetConfigSDMA()
432 handle->channelNums = saiConfig->channelNums; in SAI_TransferRxSetConfigSDMA()
433 handle->channelMask = saiConfig->channelMask; in SAI_TransferRxSetConfigSDMA()
435 if (saiConfig->channelNums > 1U) in SAI_TransferRxSetConfigSDMA()
438 …handle->fifoOffset = ((saiConfig->endChannel - saiConfig->startChannel) * 4U) / (saiConfig->channe… in SAI_TransferRxSetConfigSDMA()
445 handle->channel = saiConfig->startChannel; in SAI_TransferRxSetConfigSDMA()
448 handle->count = (uint32_t)saiConfig->fifo.fifoWatermark * (uint32_t)saiConfig->channelNums; in SAI_TransferRxSetConfigSDMA()
450 handle->count = 1U * saiConfig->channelNums; in SAI_TransferRxSetConfigSDMA()