functiongetClockCounterValue
Function to calculate a clock counter value for PWM or interrupts at a specific frequency
Extends from Modelica.Icons.Function.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| SIunits.Frequency | prescaledFrequency | ||
| SIunits.Frequency | desiredFrequency | ||
| Real | allowedError |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | i |