IPC Module - Analog Inputs Service
This page contains documentation of the Analog Inputs API.
To measure voltage on a signal (e.g. AIN_5), the user has to request the service, configure the channel and subscribe to the publication of values.
Messages
Enums
- enum analog_inputs_result
Result codes
Constant
Value
Description
OK
0
OK
ERROR
1
Error
- enum analog_inputs_channels
Logical channels. anchor logical_channels These channels (AIN_1 - AIN_8) correspond to physical pins in the main connector.
Constant
Value
Description
AIN_1
0
AIN_1
AIN_2
1
AIN_2
AIN_3
2
AIN_3
AIN_4
3
AIN_4
AIN_5
4
AIN_5
AIN_6
5
AIN_6
AIN_7
6
AIN_7
AIN_8
7
AIN_8
NUMBER_OF_CHANNELS
8
- enum analog_inputs_mode
Possible measurement modes for analog inputs.
Constant
Value
Description
OFF
0
OFf
VOLTAGE
1
Voltage
FREQUENCY
2
Frequency