em100

package
v0.0.0-...-7dbd9af Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package em100 provides a Go API for controlling the em100 flash emulator

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPath = "/opt/em100/em100"
	DefaultChip = "W25Q128BV"
)

Default configuration values

Functions

This section is empty.

Types

type Em100

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

Em100 is a flash emulator instance

func NewEm100

func NewEm100(path, chip string) *Em100

NewEm100 created a new Em100

func NewEm100FromEnv

func NewEm100FromEnv() (*Em100, error)

NewEm100FromEnv created a new Em100 using TASTEVIN_EM100 env var example env: TASTEVIN_EM100='sudo /opt/em100/em100 --set W25Q128BV'

func (*Em100) Dump

func (em *Em100) Dump(filename string) error

Dump a the emulator flash content to a file, this will stop the emulation

func (*Em100) Load

func (em *Em100) Load(filename string) error

Load a flash image into the emulator, this will start the emulation

func (*Em100) Start

func (em *Em100) Start() error

Start the emulation

func (*Em100) Stop

func (em *Em100) Stop() error

Stop the emulation

Jump to

Keyboard shortcuts

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