temper

package
v0.0.0-...-5a0b006 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 9 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL