Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceDetails ¶
type DeviceDetails struct { Path string VenderID uint16 ProductID uint16 Offset int Driver TemperDriver }
func GetUSBDetails ¶
func GetUSBDetails(usbPath string) (*DeviceDetails, error)
type StandardDriver ¶
type StandardDriver struct { }
func (*StandardDriver) GetStats ¶
func (t *StandardDriver) GetStats(device TemperDevice) (TemperStats, error)
type TemperDevice ¶
type TemperDevice struct { Details DeviceDetails DevicePaths []string }
func FindTemperDevices ¶
func FindTemperDevices() ([]TemperDevice, error)
type TemperDriver ¶
type TemperDriver interface {
GetStats(device TemperDevice) (TemperStats, error)
}
type TemperStats ¶
type TemperStats struct {
InternalTemperature float64
}
Click to show internal directories.
Click to hide internal directories.