esp32fw

package module
v0.0.0-...-8d2efd7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: MIT Imports: 5 Imported by: 0

README

ESP32 Firmware Tool

This repository is a rewrite version based on previously created repository that is written in Python language. You can find the repository here

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyOutputPath = errors.New("output path is empty")

ErrEmptyOutputPath Error returned when output path to a firmware is empty

View Source
var ErrEmptyRecipes = errors.New("recipes for firmware is empty")

ErrEmptyRecipes Error returned when firmware has no recipes

Functions

This section is empty.

Types

type Firmware

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

Firmware ESP32 firmware object

func (*Firmware) Build

func (f *Firmware) Build() error

Build build the firmware from recipes

func (*Firmware) SetOutputPath

func (f *Firmware) SetOutputPath(outputPath string) error

SetOutputPath set the path to the output file of the firmware

func (*Firmware) SetRecipes

func (f *Firmware) SetRecipes(recipes []FirmwareRecipe) error

SetRecipes set the recipes for the firmware

type FirmwareRecipe

type FirmwareRecipe struct {
	Offset uint   // offset of the binary file, usually represented in hexadecimal number
	Path   string // relative path to the binary file.
}

FirmwareRecipe ESP32 firmware is built from several binary files with their own offset. This struct represents the path to a binary file and its offset.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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