| edition = "2023"; |
| |
| package milotic_tlbmc; |
| |
| import "entity_common_config.proto"; |
| import "hal_common_config.proto"; |
| import "sensor_instance_properties.proto"; |
| |
| message AdcChannel { |
| // The name of the file that contains the ADC reading for this channel. |
| string file_name = 1; |
| // The threshold for the raw signal voltage value to be considered as |
| // high/low virtual GPIO value. |
| int64 gpio_threshold_millivolts = 2; |
| // Sensor instance specific properties. |
| SensorInstanceProperties instance_properties = 3; |
| } |
| |
| // Config for a set of ADC telemetry based on the iio sysfs readings. |
| // A single config will generate a list of sensors. |
| message AdcSensorConfig { |
| // The name of the ADC device, matching the "name" file under the device |
| // directory. |
| string device_name = 1; |
| // The common config for the entity. |
| EntityCommonConfig entity_common_config = 2; |
| // The channels to be collected from the ADC device. |
| repeated AdcChannel channels = 3; |
| // The common config for the HAL. |
| HalCommonConfig hal_common_config = 4; |
| } |