Lines Matching refs:sourceClock_Hz

92 …uint32_t sourceClock_Hz, uint32_t width_ns, uint32_t minCycles, uint32_t maxCycles, uint32_t presc…
246 …uint32_t sourceClock_Hz, uint32_t width_ns, uint32_t minCycles, uint32_t maxCycles, uint32_t presc… in LPI2C_GetCyclesForWidth() argument
248 assert(sourceClock_Hz > 0U); in LPI2C_GetCyclesForWidth()
258 uint32_t busCycle_ns = 1000000U / (sourceClock_Hz / divider / 1000U); in LPI2C_GetCyclesForWidth()
475 …2C_MasterInit(LPI2C_Type *base, const lpi2c_master_config_t *masterConfig, uint32_t sourceClock_Hz) in LPI2C_MasterInit() argument
528 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sdaGlitchFilterWidth_ns, 1U, in LPI2C_MasterInit()
537 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sclGlitchFilterWidth_ns, 1U, in LPI2C_MasterInit()
546 LPI2C_MasterSetBaudRate(base, sourceClock_Hz, masterConfig->baudRate_Hz); in LPI2C_MasterInit()
556 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->busIdleTimeout_ns, 1U, in LPI2C_MasterInit()
564 … cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->pinLowTimeout_ns / 256U, 1U, in LPI2C_MasterInit()
636 void LPI2C_MasterSetBaudRate(LPI2C_Type *base, uint32_t sourceClock_Hz, uint32_t baudRate_Hz) in LPI2C_MasterSetBaudRate() argument
665 …clkCycle = (uint8_t)((10U * sourceClock_Hz / divider / baudRate_Hz + 5U) / 10U - (2U + filtScl) / … in LPI2C_MasterSetBaudRate()
682 computedRate = (sourceClock_Hz / (uint32_t)divider) / in LPI2C_MasterSetBaudRate()
714 while (tmpHigh > (bestclkCycle - 52U * sourceClock_Hz / baudRate_Hz / bestDivider / 100U + 1U)) in LPI2C_MasterSetBaudRate()
723 uint8_t tmpHold = (uint8_t)(sourceClock_Hz / baudRate_Hz / bestDivider / 2U) - 1U; in LPI2C_MasterSetBaudRate()
727 uint8_t tmpDataVd = (uint8_t)(sourceClock_Hz / baudRate_Hz / bestDivider / 4U) - 1U; in LPI2C_MasterSetBaudRate()
733 if ((sourceClock_Hz / baudRate_Hz / 20U) > (bestDivider + 2U)) in LPI2C_MasterSetBaudRate()
737 if (filtSda < (sourceClock_Hz / baudRate_Hz / 20U - bestDivider - 2U)) in LPI2C_MasterSetBaudRate()
739 filtSda = (uint8_t)(sourceClock_Hz / baudRate_Hz / 20U) - bestDivider - 2U; in LPI2C_MasterSetBaudRate()
1824 …LPI2C_SlaveInit(LPI2C_Type *base, const lpi2c_slave_config_t *slaveConfig, uint32_t sourceClock_Hz) in LPI2C_SlaveInit() argument
1862 LPI2C_GetCyclesForWidth(sourceClock_Hz, slaveConfig->sdaGlitchFilterWidth_ns, 4U, in LPI2C_SlaveInit()
1868 tmpCycle = LPI2C_GetCyclesForWidth(sourceClock_Hz, slaveConfig->sclGlitchFilterWidth_ns, 4U, in LPI2C_SlaveInit()
1875 LPI2C_GetCyclesForWidth(sourceClock_Hz, slaveConfig->dataValidDelay_ns, tmpCycle, in LPI2C_SlaveInit()
1883 LPI2C_GetCyclesForWidth(sourceClock_Hz, slaveConfig->clockHoldTime_ns, 3U, in LPI2C_SlaveInit()