utils

package
v0.0.0-...-83ae097 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInt16

func GetInt16(slice []byte, order BytesOrder) (result int16)

func GetUInt16

func GetUInt16(slice []byte, order BytesOrder) (result uint16)

func ReadInt16Raw

func ReadInt16Raw(d *i2c.Device, order BytesOrder) (r int16, err error)

func ReadInt16Reg

func ReadInt16Reg(d *i2c.Device, reg byte, order BytesOrder) (r int16, err error)

func ReadUInt16Raw

func ReadUInt16Raw(d *i2c.Device, order BytesOrder) (r uint16, err error)

func ReadUInt16Reg

func ReadUInt16Reg(d *i2c.Device, reg byte, order BytesOrder) (r uint16, err error)

Types

type BytesOrder

type BytesOrder byte
const (
	LEOrder BytesOrder = 0
	BEOrder            = 1
)

Jump to

Keyboard shortcuts

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