driver

package
v0.0.0-...-8bc70f8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Conn connector.Connector
}

func ConnDevice

func ConnDevice(cfg config.Config) (Device, error)

func (*Device) GetInstantWeight

func (d *Device) GetInstantWeight(ctx context.Context) (string, error)

func (*Device) GetScalePar

func (d *Device) GetScalePar(ctx context.Context) (string, error)

func (*Device) SetTare

func (d *Device) SetTare(ctx context.Context) (string, error)

func (*Device) SetTareValue

func (d *Device) SetTareValue(ctx context.Context, val [4]byte) (string, error)

func (*Device) SetZero

func (d *Device) SetZero(ctx context.Context) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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