Documentation
¶
Index ¶
- type Temper
- func (t *Temper) Close() error
- func (t *Temper) Descriptor() string
- func (t *Temper) ReadC() (float32, error)
- func (t *Temper) ReadCWithContext(ctx context.Context) (float32, error)
- func (t *Temper) ReadF() (float32, error)
- func (t *Temper) ReadFWithContext(ctx context.Context) (float32, error)
- func (t *Temper) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Temper ¶
type Temper struct {
// contains filtered or unexported fields
}
func FindTempers ¶ added in v1.1.0
Helper function to return list of temper devices available in /dev
Uses the recommended default timeout of 250ms. See FindTempersWithTimeout for more details
func FindTempersWithTimeout ¶ added in v1.1.0
Function which scans /dev for temperXX devices (configured by udev)
A timeout of 250ms is recommended but as YMMV, this function allows for an arbitrary timeout.
func New ¶
Open a new Temper Device
It is the caller's responsibility to call Close() to prevent a file descriptor leak
func (*Temper) Descriptor ¶ added in v1.1.0
func (*Temper) ReadCWithContext ¶ added in v1.1.0
func (*Temper) ReadFWithContext ¶ added in v1.1.0
Read the internal sensor temperature in Fahrenheit
Click to show internal directories.
Click to hide internal directories.