Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 8 of 8) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/components/codec/wm8904/
Dfsl_wm8904.c662 uint32_t fvco = 0U, outputDiv = 0U, ratio = 0U; in WM8904_SetFLLConfig() local
701 ratio = 4U; in WM8904_SetFLLConfig()
705 ratio = 3U; in WM8904_SetFLLConfig()
709 ratio = 2U; in WM8904_SetFLLConfig()
713 ratio = 1U; in WM8904_SetFLLConfig()
717 ratio = 0U; in WM8904_SetFLLConfig()
720 n = fvco / ((ratio + 1U) * referenceClock); in WM8904_SetFLLConfig()
721 k = (uint32_t)((uint64_t)fvco * 1000000U) / ((ratio + 1U) * referenceClock); in WM8904_SetFLLConfig()
735 …ifyRegister(handle, WM8904_FLL_CONTROL_2, 0x3F07U, (uint16_t)(((outputDiv - 1U) << 8U) | ratio)) != in WM8904_SetFLLConfig()
953 uint32_t ratio = 0; in WM8904_SetAudioFormat() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/asrc/
Dfsl_asrc.c317 uint32_t ratio = 0U, i = 0U; in ASRC_SetIdealRatioConfig() local
321 ratio = (inputSampleRate / outputSampleRate) << ASRC_SAMPLE_RATIO_DECIMAL_DEPTH; in ASRC_SetIdealRatioConfig()
334 ratio |= 1UL << (ASRC_SAMPLE_RATIO_DECIMAL_DEPTH - i); in ASRC_SetIdealRatioConfig()
348 ASRC_IDEAL_RATIO_HIGH(base, channelPair) = ASRC_ASRIDRHA_IDRATIOA_H(ratio >> 24U); in ASRC_SetIdealRatioConfig()
349 ASRC_IDEAL_RATIO_LOW(base, channelPair) = ASRC_ASRIDRLA_IDRATIOA_L(ratio); in ASRC_SetIdealRatioConfig()
Dfsl_asrc.h39 #define ASRC_ASRCTR_RATIO(ratio, index) \ argument
40 …(((uint32_t)((uint32_t)(ratio) << (ASRC_ASRCTR_IDRA_SHIFT + (uint32_t)(index)*2U))) & ASRC_ASRCTR_…
/hal_nxp-3.5.0/mcux/mcux-sdk/components/codec/cs42448/
Dfsl_cs42448.c280 uint32_t ratio = mclk / sample_rate; in CS42448_ConfigDataFormat() local
290 switch (ratio) in CS42448_ConfigDataFormat()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/codec/cs42888/
Dfsl_cs42888.c283 uint32_t ratio = mclk / sample_rate; in CS42888_ConfigDataFormat() local
293 switch (ratio) in CS42888_ConfigDataFormat()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/easrc/
Dfsl_asrc.c298 uint64_t ratio = 0U; in ASRC_SetSampleRateRatioConfig() local
318 ratio = ((uint64_t)inRate << fracBits) / outRate; in ASRC_SetSampleRateRatioConfig()
320 base->RS_RATIO_LOW[context].RS_RATIO_LOW = (uint32_t)ratio & 0xFFFFFFFFU; in ASRC_SetSampleRateRatioConfig()
321 base->RS_RATIO_LOW[context].RS_RATIO_HIGH = ((uint32_t)(ratio >> 32U)) & 0xFFFFFFFFU; in ASRC_SetSampleRateRatioConfig()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sdma/
Dfsl_sdma.h194 sdma_clock_ratio_t ratio; /*!< SDMA core clock ratio to ARM platform DMA interface */ member
Dfsl_sdma.c396 …tmpreg |= (SDMAARM_CONFIG_ACR(config->ratio) | SDMAARM_CONFIG_RTDOBS(config->enableRealTimeDebugPi… in SDMA_Init()
432 config->ratio = kSDMA_HalfARMClockFreq; in SDMA_GetDefaultConfig()