functionreasonableClockSelect
Function to calculate a reasonable prescaler for PWM or interrupts at a specific frequency
Extends from Modelica.Icons.Function.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| SIunits.Frequency | cpu | ||
| SIunits.Frequency | desired | ||
| Real | allowedError | ||
| SIunits.Frequency[Types.TimerPrescaler] | prescalerConstants |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Types.TimerPrescaler | prescaler |
Contents
| Name | Description |
|---|---|