sara

package
v0.0.0-...-515bbe0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx *context.Context) error

Types

type Flasher

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

func OpenFlasher

func OpenFlasher(portName string) (*Flasher, error)

func (*Flasher) Close

func (flasher *Flasher) Close() error

func (*Flasher) Expect

func (flasher *Flasher) Expect(buffer string, response string, timeout int) (string, error)

func (*Flasher) ExpectMinBytes

func (flasher *Flasher) ExpectMinBytes(buffer string, response string, timeout int, min_bytes int) (string, error)

func (*Flasher) GetFwVersion

func (flasher *Flasher) GetFwVersion() (string, error)

func (*Flasher) Hello

func (flasher *Flasher) Hello() error

func (*Flasher) Write

func (flasher *Flasher) Write(address uint32, buffer []byte) error

Write a block of flash memory

type FlasherError

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

func (FlasherError) Error

func (e FlasherError) Error() string

Jump to

Keyboard shortcuts

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