cmd

package
v0.0.0-...-e8a5bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Arduino93L56R

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

func NewArduino93L56R

func NewArduino93L56R(serPort string) *Arduino93L56R

func (*Arduino93L56R) Close

func (a *Arduino93L56R) Close()

func (*Arduino93L56R) Connect

func (a *Arduino93L56R) Connect() error

func (*Arduino93L56R) I2CRead

func (a *Arduino93L56R) I2CRead(addr int, length int) ([]byte, error)

TODO: This only works with I2C EEPROMs with up to 256 addresses, since the arduino only sends a single address byte rather than two for a 16bit int

func (*Arduino93L56R) Read

func (a *Arduino93L56R) Read(addr int, length int, icType string) ([]byte, error)

func (*Arduino93L56R) Write

func (a *Arduino93L56R) Write(addr int, buf []byte, icType string) error

type IcType

type IcType string
const (
	Microwire IcType = "microwire"
	I2C       IcType = "i2c"
)

Jump to

Keyboard shortcuts

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