sfm3000

package
v0.0.0-...-b9caf1c Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SFM3000

type SFM3000 struct {
	// contains filtered or unexported fields
}

SFM3000 is the i2C driver for the SFM3000 Low Pressure Drop Digital Flow Meter

func NewSFM3000

func NewSFM3000(i2c conn.Conn, address uint8, isAir bool, label string) (*SFM3000, error)

NewSFM3000 create a new SFM3000 driver

func (*SFM3000) GetSerial

func (e *SFM3000) GetSerial() ([4]byte, error)

GetSerial ..

func (*SFM3000) GetValue

func (e *SFM3000) GetValue() (float64, uint8, time.Time, error)

GetValue Returns data, crc, timestamp, error

func (*SFM3000) Label

func (e *SFM3000) Label() string

Label ..

func (*SFM3000) SoftReset

func (e *SFM3000) SoftReset() error

SoftReset ..

Jump to

Keyboard shortcuts

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