.Modelica_DeviceDrivers.EmbeddedTargets.AVR.Functions.Utilities.reasonableClockSelect

Information

Function to calculate a reasonable prescaler for PWM or interrupts at a specific frequency

Interface

function reasonableClockSelect
  extends .Modelica.Icons.Function;
  import SIunits = Modelica.Units.SI;
  import Modelica_DeviceDrivers.EmbeddedTargets.AVR.Types;
  input SIunits.Frequency cpu, desired;
  input Real allowedError;
  input SIunits.Frequency prescalerConstants[Types.TimerPrescaler];
  output Types.TimerPrescaler prescaler;
end reasonableClockSelect;

Generated at 2024-12-22T19:25:51Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos