blob: ab6b9bdce07e30866b0a1e207c7779827d05552b [file] [log] [blame]
edition = "2023";
package milotic_tlbmc;
import "entity_common_config.proto";
import "hal_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 bus/address information of the sensor so that libraries know
// where and how to refresh the telemetry.
HalCommonConfig hal_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;
// The sensor group that this sensor belongs to. Likely a unique identifier
// for the root bus that this sensor is associated with.
string sensor_group = 8;
}