| edition = "2023"; |
| |
| package milotic_tlbmc; |
| |
| import "entity_common_config.proto"; |
| import "i2c_common_config.proto"; |
| import "reading_range_config.proto"; |
| import "threshold_config.proto"; |
| |
| enum FanPwmType { |
| PWM_SENSOR_TYPE_UNKNOWN = 0; |
| PWM_SENSOR_TYPE_I2C_FAN = 1; |
| } |
| |
| // Config for a PWM sensor device. |
| // A single device config generates a single sensor. |
| message FanPwmConfig { |
| // Specifies the type of the PWM sensor. |
| FanPwmType type = 1; |
| // Specifies the i2c information of the sensor so that libraries know where |
| // and how to refresh the telemtry. |
| I2cCommonConfig i2c_common_config = 2; |
| // Specifies the name of the PWM reading when it is exposed. |
| string name = 3; |
| // The thresholds that we want to monitor for the sensor. |
| ThresholdConfigs thresholds = 4; |
| // Specifies the reading range of the sensor. |
| ReadingRangeConfigs reading_ranges = 5; |
| EntityCommonConfig entity_common_config = 6; |
| // The 1 based index of the PWM sensor within the same controller. |
| uint32 index = 7; |
| } |