Home
last modified time | relevance | path

Searched refs:channelNums (Results 1 – 13 of 13) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sai/
Dfsl_sai_sdma.c270 if (format->channelNums == 0U) in SAI_TransferTxSetFormatSDMA()
272 format->channelNums = 1U; in SAI_TransferTxSetFormatSDMA()
274 handle->channelNums = format->channelNums; in SAI_TransferTxSetFormatSDMA()
276 if (format->channelNums > 1U) in SAI_TransferTxSetFormatSDMA()
279 … handle->fifoOffset = ((format->endChannel - format->channel) * 4U) / (format->channelNums - 1U); in SAI_TransferTxSetFormatSDMA()
288 …t)FSL_FEATURE_SAI_FIFO_COUNTn(base) - (uint32_t)format->watermark) * (uint32_t)format->channelNums; in SAI_TransferTxSetFormatSDMA()
290 handle->count = 1U * format->channelNums; in SAI_TransferTxSetFormatSDMA()
316 if (saiConfig->channelNums == 0U) in SAI_TransferTxSetConfigSDMA()
318 saiConfig->channelNums = 1U; in SAI_TransferTxSetConfigSDMA()
320 handle->channelNums = saiConfig->channelNums; in SAI_TransferTxSetConfigSDMA()
[all …]
Dfsl_sai_edma.c332 (saiConfig->channelNums <= 1U) || in SAI_TransferTxSetConfigEDMA()
333 …((saiConfig->channelNums > 1U) && ((saiConfig->fifo.fifoCombine == kSAI_FifoCombineModeEnabledOnWr… in SAI_TransferTxSetConfigEDMA()
349 handle->channelNums = saiConfig->channelNums; in SAI_TransferTxSetConfigEDMA()
439 (saiConfig->channelNums <= 1U) || in SAI_TransferRxSetConfigEDMA()
440 …((saiConfig->channelNums > 1U) && ((saiConfig->fifo.fifoCombine == kSAI_FifoCombineModeEnabledOnRe… in SAI_TransferRxSetConfigEDMA()
457 handle->channelNums = saiConfig->channelNums; in SAI_TransferRxSetConfigEDMA()
515 if (handle->channelNums > 1U) in SAI_TransferSendEDMA()
535 if (handle->channelNums > 1U) in SAI_TransferSendEDMA()
537 if ((handle->channelNums % 2U) != 0U) in SAI_TransferSendEDMA()
543 SAI_CHANNEL_MAP_MODULO(handle->channelNums)); in SAI_TransferSendEDMA()
[all …]
Dfsl_sai.c1435 uint8_t channelNums = 0U; in SAI_TxSetConfig() local
1451 channelNums++; in SAI_TxSetConfig()
1465 config->channelNums = channelNums; in SAI_TxSetConfig()
1468 if (config->channelNums > 1U) in SAI_TxSetConfig()
1534 assert(config->channelNums <= (uint32_t)FSL_FEATURE_SAI_CHANNEL_COUNTn(base)); in SAI_TransferTxSetConfig()
1552 handle->channelNums = config->channelNums; in SAI_TransferTxSetConfig()
1569 uint8_t channelNums = 0U; in SAI_RxSetConfig() local
1585 channelNums++; in SAI_RxSetConfig()
1599 config->channelNums = channelNums; in SAI_RxSetConfig()
1602 if (config->channelNums > 1U) in SAI_RxSetConfig()
[all …]
Dfsl_sai.h292 uint8_t channelNums; /*!< Total enabled channel numbers */ member
409 uint8_t channelNums; /*!< Total enabled channel numbers */ member
445 uint8_t channelNums; /*!< Total enabled channel numbers */ member
Dfsl_sai_sdma.h40 uint8_t channelNums; /*!< total transfer channel numbers, used for multififo */ member
Dfsl_sai_edma.h41 uint8_t channelNums; /*!< total enabled channel nums */ member
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/pdm/
Dfsl_pdm.c96 …PDM_Type *base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t d… in PDM_ReadFifo() argument
103 for (j = 0; j < channelNums; j++) in PDM_ReadFifo()
126 void PDM_ReadNonBlocking(PDM_Type *base, uint32_t startChannel, uint32_t channelNums, int16_t *buff… in PDM_ReadNonBlocking() argument
132 for (j = 0; j < channelNums; j++) in PDM_ReadNonBlocking()
478 if (handle->channelNums == 0U) in PDM_TransferSetChannelConfig()
483 handle->channelNums++; in PDM_TransferSetChannelConfig()
485 if (handle->channelNums > (uint8_t)FSL_FEATURE_PDM_CHANNEL_NUM) in PDM_TransferSetChannelConfig()
639 if (((base->STAT & 0xFFU) != 0U) && (handle->channelNums != 0U) && in PDM_TransferHandleIRQ()
645 … ((uint32_t)handle->watermark * handle->channelNums * handle->format)); in PDM_TransferHandleIRQ()
647 PDM_ReadFifo(base, handle->startChannel, handle->channelNums, in PDM_TransferHandleIRQ()
[all …]
Dfsl_pdm_sdma.c136 handle->channelNums++; in PDM_SetChannelConfigSDMA()
138 handle->count = (uint8_t)(handle->channelNums * (base->FIFO_CTRL & PDM_FIFO_CTRL_FIFOWMK_MASK)); in PDM_SetChannelConfigSDMA()
161 …etDataRegisterAddress(base, ((uint32_t)handle->endChannel - ((uint32_t)handle->channelNums - 1U))); in PDM_TransferReceiveSDMA()
186 SDMA_SetMultiFifoConfig(&config, handle->channelNums, in PDM_TransferReceiveSDMA()
Dfsl_pdm_edma.c208 handle->channelNums++; in PDM_TransferSetChannelConfigEDMA()
283 …dr = PDM_GetDataRegisterAddress(base, handle->endChannel - (handle->channelNums - 1UL)); in PDM_TransferReceiveEDMA()
286 uint32_t mappedChannel = handle->channelNums; in PDM_TransferReceiveEDMA()
Dfsl_pdm_sdma.h42 uint8_t channelNums; /*!< total channel numbers */ member
Dfsl_pdm.h386 uint8_t channelNums; /*!< Enabled channel number */ member
792 void PDM_ReadNonBlocking(PDM_Type *base, uint32_t startChannel, uint32_t channelNums, int16_t *buff…
807 …PDM_Type *base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t d…
Dfsl_pdm_edma.h79 uint8_t channelNums; /*!< total channel numbers */ member
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/easrc/
Dfsl_asrc.c91 uint32_t channelNums,
268 uint32_t channelNums, in ASRC_EnableContextSlot() argument
272 assert(channelNums <= ASRC_SUPPORT_CONTEXT_PROCESSOR_MAXIMUM_CHANNEL_NUMBER); in ASRC_EnableContextSlot()
278 ASRC_PROC_CTRL_SLOT0_R0_SLOT0_NUM_CH(channelNums - 1U) | in ASRC_EnableContextSlot()
280 ASRC_PROC_CTRL_SLOT0_R0_SLOT0_MAX_CH(startChannel + channelNums - 1U); in ASRC_EnableContextSlot()
286 ASRC_PROC_CTRL_SLOT1_R0_SLOT1_NUM_CH(channelNums - 1U) | in ASRC_EnableContextSlot()
288 ASRC_PROC_CTRL_SLOT1_R0_SLOT1_MAX_CH(startChannel + channelNums - 1U); in ASRC_EnableContextSlot()