| /hal_nxp-latest/mcux/mcux-sdk/drivers/flexio/i2s/ |
| D | fsl_flexio_i2s.c | 38 static void FLEXIO_I2S_ReadNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *rxData, si… 48 static void FLEXIO_I2S_WriteNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, s… 62 static void FLEXIO_I2S_WriteNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, s… in FLEXIO_I2S_WriteNonBlocking() argument 66 uint8_t bytesPerWord = bitWidth / 8U; in FLEXIO_I2S_WriteNonBlocking() 78 base->flexioBase->SHIFTBUFBIS[base->txShifterIndex] = data << (32U - bitWidth); in FLEXIO_I2S_WriteNonBlocking() 83 static void FLEXIO_I2S_ReadNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *rxData, si… in FLEXIO_I2S_ReadNonBlocking() argument 87 uint8_t bytesPerWord = bitWidth / 8U; in FLEXIO_I2S_ReadNonBlocking() 362 uint32_t timDiv = srcClock_Hz / (format->sampleRate_Hz * format->bitWidth * 2U); in FLEXIO_I2S_MasterSetFormat() 371 … base->flexioBase->TIMCMP[base->fsTimerIndex] = FLEXIO_TIMCMP_CMP(format->bitWidth * timDiv - 1U); in FLEXIO_I2S_MasterSetFormat() 374 …bclkDiv = ((timDiv / 2U - 1U) | ((format->bitWidth * 2UL - … in FLEXIO_I2S_MasterSetFormat() [all …]
|
| D | fsl_flexio_i2s.h | 97 uint8_t bitWidth; /*!< Bit width of audio data, always 8/16/24/32 bits */ member 149 …uint8_t bitWidth; /*!< Bit width for transfer, 8/16/24/32bi… member 359 status_t FLEXIO_I2S_WriteBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, size_t … 368 static inline void FLEXIO_I2S_WriteData(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint32_t data) in FLEXIO_I2S_WriteData() argument 370 base->flexioBase->SHIFTBUFBIS[base->txShifterIndex] = (data << (32U - bitWidth)); in FLEXIO_I2S_WriteData() 385 status_t FLEXIO_I2S_ReadBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *rxData, size_t s…
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/sai/ |
| D | fsl_sai.c | 112 uint8_t bitWidth, 131 uint8_t bitWidth, 144 sai_word_width_t bitWidth, 298 uint8_t bitWidth, in SAI_WriteNonBlocking() argument 304 uint8_t bytesPerWord = bitWidth / 8U; in SAI_WriteNonBlocking() 331 uint8_t bitWidth, in SAI_ReadNonBlocking() argument 337 uint8_t bytesPerWord = bitWidth / 8U; in SAI_ReadNonBlocking() 358 sai_word_width_t bitWidth, in SAI_GetCommonConfig() argument 381 config->frameSync.frameSyncWidth = (uint8_t)bitWidth; in SAI_GetCommonConfig() 393 config->serialData.dataWord0Length = (uint8_t)bitWidth; in SAI_GetCommonConfig() [all …]
|
| D | fsl_sai.h | 297 uint32_t bitWidth; /*!< Data length of audio data, usually 8/16/24/32 bits */ member 457 uint8_t bitWidth; /*!< Bit width for transfer, 8/16/24/32 bits */ member 636 …I2S_Type *base, uint32_t sourceClockHz, uint32_t sampleRate, uint32_t bitWidth, uint32_t channelNu… 648 …I2S_Type *base, uint32_t sourceClockHz, uint32_t sampleRate, uint32_t bitWidth, uint32_t channelNu… 756 sai_word_width_t bitWidth, 769 sai_word_width_t bitWidth, 782 sai_word_width_t bitWidth, 797 sai_word_width_t bitWidth, 826 sai_word_width_t bitWidth, 1210 void SAI_WriteBlocking(I2S_Type *base, uint32_t channel, uint32_t bitWidth, uint8_t *buffer, uint32… [all …]
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/cs42448/ |
| D | fsl_cs42448.c | 98 errorStatus = CS42448_SetProtocol(handle, config->bus, config->format.bitWidth); in CS42448_Init() 105 …nfigDataFormat(handle, config->format.mclk_HZ, config->format.sampleRate, config->format.bitWidth); in CS42448_Init() 185 status_t CS42448_SetProtocol(cs42448_handle_t *handle, cs42448_bus_t protocol, uint32_t bitWidth) in CS42448_SetProtocol() argument 193 if (bitWidth <= 24U) in CS42448_SetProtocol() 204 if (bitWidth <= 24U) in CS42448_SetProtocol() 215 if (bitWidth == 24U) in CS42448_SetProtocol() 219 else if (bitWidth == 16U) in CS42448_SetProtocol() 230 if (bitWidth == 20U) in CS42448_SetProtocol() 241 if (bitWidth == 24U) in CS42448_SetProtocol() 252 if (bitWidth == 24U) in CS42448_SetProtocol()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/cs42888/ |
| D | fsl_cs42888.c | 101 errorStatus = CS42888_SetProtocol(handle, config->bus, config->format.bitWidth); in CS42888_Init() 108 …nfigDataFormat(handle, config->format.mclk_HZ, config->format.sampleRate, config->format.bitWidth); in CS42888_Init() 188 status_t CS42888_SetProtocol(cs42888_handle_t *handle, cs42888_bus_t protocol, uint32_t bitWidth) in CS42888_SetProtocol() argument 196 if (bitWidth <= 24U) in CS42888_SetProtocol() 207 if (bitWidth <= 24U) in CS42888_SetProtocol() 218 if (bitWidth == 24U) in CS42888_SetProtocol() 222 else if (bitWidth == 16U) in CS42888_SetProtocol() 233 if (bitWidth == 20U) in CS42888_SetProtocol() 244 if (bitWidth == 24U) in CS42888_SetProtocol() 255 if (bitWidth == 24U) in CS42888_SetProtocol()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/ |
| D | fsl_codec_adapter.c | 242 status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 251 retVal = HAL_CODEC_WM8904_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 257 retVal = HAL_CODEC_WM8960_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 263 retVal = HAL_CODEC_WM8962_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 269 retVal = HAL_CODEC_WM8524_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 275 retVal = HAL_CODEC_SGTL5000_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 281 retVal = HAL_CODEC_DA7212_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 287 retVal = HAL_CODEC_CS42888_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 293 retVal = HAL_CODEC_CS42448_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() 299 retVal = HAL_CODEC_AK4497_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat() [all …]
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/esai/ |
| D | fsl_esai_edma.c | 216 ESAI_AnalysisSlot(format->slotType, &handle->slotLen, &handle->bitWidth); in ESAI_TransferTxSetFormatEDMA() 247 ESAI_AnalysisSlot(format->slotType, &handle->slotLen, &handle->bitWidth); in ESAI_TransferRxSetFormatEDMA() 295 EDMA_PrepareTransfer(&config, xfer->data, handle->bitWidth / 8UL, (void *)(uint32_t *)destAddr, in ESAI_TransferSendEDMA() 296 … handle->bitWidth / 8UL, (uint32_t)handle->count * handle->bitWidth / 8U, xfer->dataSize, in ESAI_TransferSendEDMA() 300 handle->nbytes = handle->count * handle->bitWidth / 8U; in ESAI_TransferSendEDMA() 354 EDMA_PrepareTransfer(&config, (void *)(uint32_t *)srcAddr, handle->bitWidth / 8UL, xfer->data, in ESAI_TransferReceiveEDMA() 355 … handle->bitWidth / 8UL, (uint32_t)handle->count * handle->bitWidth / 8U, xfer->dataSize, in ESAI_TransferReceiveEDMA() 359 handle->nbytes = handle->count * handle->bitWidth / 8U; in ESAI_TransferReceiveEDMA()
|
| D | fsl_esai.c | 62 static void ESAI_WriteNonBlocking(ESAI_Type *base, uint32_t bitWidth, uint8_t *buffer, uint32_t siz… 73 static void ESAI_ReadNonBlocking(ESAI_Type *base, uint32_t bitWidth, uint8_t *buffer, uint32_t size… 295 static void ESAI_WriteNonBlocking(ESAI_Type *base, uint32_t bitWidth, uint8_t *buffer, uint32_t siz… in ESAI_WriteNonBlocking() argument 299 uint8_t bytesPerWord = (uint8_t)(bitWidth / 8U); in ESAI_WriteNonBlocking() 316 static void ESAI_ReadNonBlocking(ESAI_Type *base, uint32_t bitWidth, uint8_t *buffer, uint32_t size) in ESAI_ReadNonBlocking() argument 320 uint8_t bytesPerWord = (uint8_t)(bitWidth / 8U); in ESAI_ReadNonBlocking() 733 void ESAI_WriteBlocking(ESAI_Type *base, uint32_t bitWidth, uint8_t *buffer, uint32_t size) in ESAI_WriteBlocking() argument 736 uint8_t bytesPerWord = (uint8_t)bitWidth / 8U; in ESAI_WriteBlocking() 745 ESAI_WriteNonBlocking(base, bitWidth, buffer, bytesPerWord); in ESAI_WriteBlocking() 766 void ESAI_ReadBlocking(ESAI_Type *base, uint32_t bitWidth, uint8_t *buffer, uint32_t size) in ESAI_ReadBlocking() argument [all …]
|
| /hal_nxp-latest/mcux/mcux-sdk/components/audio/ |
| D | fsl_adapter_flexcomm_i2s.c | 148 i2sConfig.position = config->bitWidth; in HAL_AudioCommonInit() 162 …)(config->srcClock_Hz / (uint32_t)config->sampleRate_Hz / (uint32_t)config->bitWidth / channelNum); in HAL_AudioCommonInit() 163 i2sConfig.dataLength = config->bitWidth; in HAL_AudioCommonInit() 166 i2sConfig.frameLength = (uint16_t)config->bitWidth * channelNum; in HAL_AudioCommonInit() 270 (uint32_t)config->bitWidth * 2U + i2sConfig.position); in HAL_AudioCommonInit() 275 (uint32_t)config->bitWidth * 2U + i2sConfig.position); in HAL_AudioCommonInit() 277 (uint32_t)config->bitWidth * 4U + i2sConfig.position); in HAL_AudioCommonInit() 282 (uint32_t)config->bitWidth * 2U + i2sConfig.position); in HAL_AudioCommonInit() 284 (uint32_t)config->bitWidth * 4U + i2sConfig.position); in HAL_AudioCommonInit() 286 (uint32_t)config->bitWidth * 6U + i2sConfig.position); in HAL_AudioCommonInit()
|
| D | fsl_adapter_sai.c | 305 …SAI_GetClassicI2SConfig(&saiConfig, (sai_word_width_t)config->bitWidth, kSAI_Stereo, featureConfig… in HAL_AudioCommonInit() 346 saiConfig.frameSync.frameSyncWidth = config->bitWidth >> 1U; in HAL_AudioCommonInit() 352 saiConfig.frameSync.frameSyncWidth = config->bitWidth; in HAL_AudioCommonInit() 359 saiConfig.frameSync.frameSyncWidth = config->bitWidth * channelNum >> 1U; in HAL_AudioCommonInit() 421 saiConfig.frameSync.frameSyncWidth = config->bitWidth; in HAL_AudioCommonInit() 438 saiConfig.frameSync.frameSyncWidth = config->bitWidth; in HAL_AudioCommonInit() 564 config->bitWidth, channelNum); in HAL_AudioCommonInit() 573 config->bitWidth, channelNum); in HAL_AudioCommonInit()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/srtm/services/ |
| D | srtm_sai_edma_adapter.c | 64 sai_word_width_t bitWidth; member 167 alignment = ((uint32_t)(rtm->bitWidth) >> 3U) * rtm->channels; in SRTM_SaiEdmaAdaptor_ResetLocalBuf() 700 uint8_t bitWidth; in SRTM_SaiEdmaAdapter_SetConfig() local 704 bitWidth = in SRTM_SaiEdmaAdapter_SetConfig() 705 …(uint8_t)(handle->txRtm.bitWidth == kSAI_WordWidth24bits ? kSAI_WordWidth32bits : handle->txRtm.bi… in SRTM_SaiEdmaAdapter_SetConfig() 707 handle->txConfig.config.frameSync.frameSyncWidth = bitWidth; in SRTM_SaiEdmaAdapter_SetConfig() 708 handle->txConfig.config.serialData.dataWord0Length = bitWidth; in SRTM_SaiEdmaAdapter_SetConfig() 709 handle->txConfig.config.serialData.dataWordLength = bitWidth; in SRTM_SaiEdmaAdapter_SetConfig() 710 handle->txConfig.config.serialData.dataWordNLength = bitWidth; in SRTM_SaiEdmaAdapter_SetConfig() 711 handle->txConfig.config.serialData.dataFirstBitShifted = (uint8_t)handle->txRtm.bitWidth; in SRTM_SaiEdmaAdapter_SetConfig() [all …]
|
| D | srtm_sai_sdma_adapter.c | 69 uint8_t bitWidth; member 193 alignment = ((uint32_t)(rtm->bitWidth) >> 3U) * (rtm->streamMode == kSAI_Stereo ? 2UL : 1UL); in SRTM_SaiSdmaAdaptor_ResetLocalBuf() 874 uint8_t channels, bitWidth; in SRTM_SaiSdmaAdapter_SetFormat() local 916 … bitWidth = paramRtm->bitWidth == 24U ? 32U : paramRtm->bitWidth; in SRTM_SaiSdmaAdapter_SetFormat() 918 cfg->config.serialData.dataWord0Length = bitWidth; in SRTM_SaiSdmaAdapter_SetFormat() 919 cfg->config.serialData.dataWordLength = bitWidth; in SRTM_SaiSdmaAdapter_SetFormat() 920 cfg->config.serialData.dataWordNLength = bitWidth; in SRTM_SaiSdmaAdapter_SetFormat() 921 cfg->config.serialData.dataFirstBitShifted = paramRtm->bitWidth; in SRTM_SaiSdmaAdapter_SetFormat() 922 cfg->config.frameSync.frameSyncWidth = bitWidth; in SRTM_SaiSdmaAdapter_SetFormat() 946 … SAI_TxSetBitClockRate(handle->sai, cfg->mclkConfig.mclkHz, paramRtm->srate, bitWidth, channels); in SRTM_SaiSdmaAdapter_SetFormat() [all …]
|
| D | srtm_i2c_codec_adapter.c | 47 uint32_t bitWidth = 0U; in SRTM_I2CCodecAdapter_SetParam() local 72 bitWidth = saiFormatMap[format - 45U].bitwidth; in SRTM_I2CCodecAdapter_SetParam() 76 bitWidth = saiFormatMap[format].bitwidth; in SRTM_I2CCodecAdapter_SetParam() 84 (void)CODEC_SetFormat(handle->driver, handle->config.mclk, srate, bitWidth); in SRTM_I2CCodecAdapter_SetParam()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/wm8904/ |
| D | fsl_wm8904.c | 45 wm8904_bit_width_t bitWidth); 73 wm8904_bit_width_t bitWidth) in WM8904_UpdateFormat() argument 93 …result = WM8904_ModifyRegister(handle, WM8904_AUDIO_IF_1, (0x000CU), ((uint16_t)(bitWidth) << 2U)); in WM8904_UpdateFormat() 398 (uint32_t)(WM8904_MAP_BITWIDTH(config->format.bitWidth))); in WM8904_Init() 481 config->format.bitWidth = kWM8904_BitWidth16; in WM8904_GetDefaultConfig() 513 …04_SetMasterClock(wm8904_handle_t *handle, uint32_t sysclk, uint32_t sampleRate, uint32_t bitWidth) in WM8904_SetMasterClock() argument 515 uint32_t bclk = sampleRate * bitWidth * 2U; in WM8904_SetMasterClock() 934 return WM8904_UpdateFormat(handle, format->fsRatio, regSamplerate, format->bitWidth); in WM8904_CheckAudioFormat() 947 …04_SetAudioFormat(wm8904_handle_t *handle, uint32_t sysclk, uint32_t sampleRate, uint32_t bitWidth) in WM8904_SetAudioFormat() argument 1001 switch (bitWidth) in WM8904_SetAudioFormat() [all …]
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/ak4497/ |
| D | fsl_codec_ak4497_adapter.h | 58 …_t HAL_CODEC_AK4497_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_AK4497_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/cs42448/ |
| D | fsl_codec_cs42448_adapter.h | 58 …t HAL_CODEC_CS42448_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_CS42448_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/cs42888/ |
| D | fsl_codec_cs42888_adapter.h | 58 …t HAL_CODEC_CS42888_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_CS42888_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/da7212/ |
| D | fsl_codec_da7212_adapter.h | 58 …_t HAL_CODEC_DA7212_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_DA7212_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/pcm186x/ |
| D | fsl_codec_pcm186x_adapter.h | 58 …t HAL_CODEC_PCM186x_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_PCM186x_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/pcm512x/ |
| D | fsl_codec_pcm512x_adapter.h | 58 …t HAL_CODEC_PCM512x_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_PCM512x_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/sgtl5000/ |
| D | fsl_codec_sgtl_adapter.h | 58 … HAL_CODEC_SGTL5000_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_SGTL5000_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/wm8960/ |
| D | fsl_codec_wm8960_adapter.h | 56 …_t HAL_CODEC_WM8960_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 169 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 171 return HAL_CODEC_WM8960_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/wm8962/ |
| D | fsl_codec_wm8962_adapter.h | 58 …_t HAL_CODEC_WM8962_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 171 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 173 return HAL_CODEC_WM8962_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/codec/port/tfa9896/ |
| D | fsl_codec_tfa9896_adapter.h | 58 …t HAL_CODEC_TFA9896_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth); 168 …e status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument 170 return HAL_CODEC_TFA9896_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
|