Lines Matching refs:scbClockHz
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} { argument
128 … 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)}]
201 set actualDataRateHz [expr {$scbClockHz / ($lowPhase + $highPhase)}]