functionconstructor

Initialize PWM timer. Note that if you setup both A and B pins, you need to use the same settings for both or you randomly get the settings for one of them controlling the same timer.

Extends from Modelica.Icons.Function.

Inputs

TypeNameDefaultDescription
Functions.Timers.Timertimer
Types.TimerNumberpinTypes.TimerNumber.A
IntegerinitialValue0
Booleaninvertedfalse

Outputs

TypeNameDefaultDescription
Initpwm