.Modelica_DeviceDrivers.EmbeddedTargets.AVR.Functions.Analog.read_voltage

Interface

function read_voltage
  extends .Modelica.Icons.Function;
  import Modelica.Units.SI.Voltage;
  input .Modelica_DeviceDrivers.EmbeddedTargets.AVR.Types.AnalogPort analogPort;
  input Voltage vref "We need to pass a reference voltage in order to read a voltage";
  input Integer voltageResolution "In bits; 10 bit resolution.";
  output Voltage value "The voltage on the selected PIN";
end read_voltage;

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