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) SetOutputPath ¶
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.
Click to show internal directories.
Click to hide internal directories.