add cpu frequency driver
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package drivers
|
||||
|
||||
type TemperatureSensor struct {
|
||||
path string
|
||||
Name string
|
||||
TempC float64
|
||||
}
|
||||
|
||||
type TemperatureDriver interface {
|
||||
ReadTemperatureSensors() ([]TemperatureSensor, error)
|
||||
}
|
||||
|
||||
type PowerSensor struct {
|
||||
path string
|
||||
Name string
|
||||
Watts float64
|
||||
}
|
||||
|
||||
type PowerDriver interface {
|
||||
ReadPowerSensors() ([]PowerSensor, error)
|
||||
}
|
||||
|
||||
type ClockSensor struct {
|
||||
path string
|
||||
Name int
|
||||
FrequencyGHz float64
|
||||
}
|
||||
|
||||
type ClockDriver interface {
|
||||
ReadClockSensors() ([]ClockSensor, error)
|
||||
}
|
||||
Reference in New Issue
Block a user