program

package
v0.0.0-...-51e30aa Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: MIT Copyright (c) 2021 Brian Starkey <stark3y@gmail.com>

Index

Constants

View Source
const (
	FlashBase uint64 = 0x10000000
	FlashSize uint64 = (2 * 1024 * 1024)
)

Variables

This section is empty.

Functions

func DefaultInFlashFunc

func DefaultInFlashFunc(addr, size uint64) bool

func Program

func Program(rw io.ReadWriter, img *Image, progress chan<- ProgressReport) error

Types

type Image

type Image struct {
	Addr uint32
	Data []byte
}

func LoadBin

func LoadBin(fname string, base uint32) (*Image, error)

func LoadELF

func LoadELF(fname string, inFlash InFlashFunc) (*Image, error)

type InFlashFunc

type InFlashFunc func(addr, size uint64) bool

type ProgressReport

type ProgressReport struct {
	Stage    string
	Progress int
	Max      int
}

Jump to

Keyboard shortcuts

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