functionread_voltage
Extends from Modelica.Icons.Function.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| .Modelica_DeviceDrivers.EmbeddedTargets.AVR.Types.AnalogPort | analogPort | ||
| Voltage | vref | We need to pass a reference voltage in order to read a voltage | |
| Integer | voltageResolution | In bits; 10 bit resolution. |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Voltage | value | The voltage on the selected PIN |