Searched refs:scbClockHz (Results 1 – 3 of 3) sorted by relevance
99 set scbClockHz [lindex $::argv $::ARG_IDX_SCB_CLK_HZ]100 if {![string is integer $dataRateHz] || ![string is integer $scbClockHz]} {101 … error "Unable to parse argument values: either $dataRateHz or $scbClockHz is not an integer."104 return [master_set_data_rate $dataRateHz $scbClockHz]114 proc master_set_data_rate {dataRateHz scbClockHz} { argument128 … if {$scbClockHz < $::I2C_MASTER_STD_CLK_MIN_HZ || $scbClockHz > $::I2C_MASTER_STD_CLK_MAX_HZ} {135 … if {$scbClockHz < $::I2C_MASTER_FST_CLK_MIN_HZ || $scbClockHz > $::I2C_MASTER_FST_CLK_MAX_HZ} {142 … if {$scbClockHz < $::I2C_MASTER_FSTP_CLK_MIN_HZ || $scbClockHz > $::I2C_MASTER_FSTP_CLK_MAX_HZ} {157 set period [expr {1000000000 / $scbClockHz}]183 set actualDataRateHz [expr {$scbClockHz / ($lowPhase + $highPhase)}][all …]
546 uint32_t Cy_SCB_I2C_SetDataRate(CySCB_Type *base, uint32_t dataRateHz, uint32_t scbClockHz) in Cy_SCB_I2C_SetDataRate() argument548 CY_ASSERT_L2(scbClockHz > 0UL); in Cy_SCB_I2C_SetDataRate()555 actualDataRateHz = Cy_SCB_I2C_GetDataRate(base, scbClockHz); in Cy_SCB_I2C_SetDataRate()579 …if ((scbClockHz >= CY_SCB_I2C_MASTER_STD_CLK_MIN) && (scbClockHz <= CY_SCB_I2C_MASTER_STD_CLK_MAX)) in Cy_SCB_I2C_SetDataRate()591 …if ((scbClockHz >= CY_SCB_I2C_MASTER_FST_CLK_MIN) && (scbClockHz <= CY_SCB_I2C_MASTER_FST_CLK_MAX)) in Cy_SCB_I2C_SetDataRate()603 …if ((scbClockHz >= CY_SCB_I2C_MASTER_FSTP_CLK_MIN) && (scbClockHz <= CY_SCB_I2C_MASTER_FSTP_CLK_MA… in Cy_SCB_I2C_SetDataRate()620 uint32_t period = 1000000000U / scbClockHz; in Cy_SCB_I2C_SetDataRate()652 actualDataRateHz = scbClockHz / (lowPhase + highPhase); in Cy_SCB_I2C_SetDataRate()678 actualDataRateHz = scbClockHz / (lowPhase + highPhase); in Cy_SCB_I2C_SetDataRate()723 uint32_t Cy_SCB_I2C_GetDataRate(CySCB_Type const *base, uint32_t scbClockHz) in Cy_SCB_I2C_GetDataRate() argument[all …]
658 uint32_t Cy_SCB_I2C_SetDataRate(CySCB_Type *base, uint32_t dataRateHz, uint32_t scbClockHz);659 uint32_t Cy_SCB_I2C_GetDataRate(CySCB_Type const *base, uint32_t scbClockHz);