rom_client

package
v0.0.0-...-2771a78 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ROMClient

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

func ConnectToROM

func ConnectToROM(ct esp.ChipType, opts *esp.FlashOpts) (*ROMClient, error)

func NewROMClient

func NewROMClient(chipType esp.ChipType, sc, sd serial.Serial, inverted bool) (*ROMClient, error)

func (*ROMClient) BootFirmware

func (rc *ROMClient) BootFirmware() error

func (*ROMClient) DataPort

func (rc *ROMClient) DataPort() serial.Serial

func (*ROMClient) Disconnect

func (rc *ROMClient) Disconnect()

func (*ROMClient) MemWrite

func (rc *ROMClient) MemWrite(data []byte, addr, jumpAddr uint32) error

MemWrite writes data to address addr and jumps to jumpAddr (if non-zero).

func (*ROMClient) ReadReg

func (rc *ROMClient) ReadReg(reg uint32) (uint32, error)

func (*ROMClient) RunStub

func (rc *ROMClient) RunStub(stubJSON []byte, params []uint32) error

RunStub unwraps and runs a stub

func (*ROMClient) WriteReg

func (rc *ROMClient) WriteReg(reg, value uint32) error

type RegReaderWriter

type RegReaderWriter interface {
	ReadReg(reg uint32) (uint32, error)
	WriteReg(reg, value uint32) error
	Disconnect()
}

Jump to

Keyboard shortcuts

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