ubootcontroller

package
v0.0.0-...-9f57b24 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UbootController

type UbootController struct {
	sync.Mutex
	// contains filtered or unexported fields
}

UbootController instance.

func New

func New(envDevice string, envFileName string) (controller *UbootController, err error)

New creates new instance of UbootController.

func (*UbootController) Close

func (controller *UbootController) Close()

Close closes UbootController.

func (*UbootController) GetCurrentBoot

func (controller *UbootController) GetCurrentBoot() (index int, err error)

GetCurrentBoot returns current boot part index.

func (*UbootController) GetMainBoot

func (controller *UbootController) GetMainBoot() (index int, err error)

GetMainBoot returns boot main part index.

func (*UbootController) SetBootOK

func (controller *UbootController) SetBootOK() (err error)

SetBootOK sets boot successful flag.

func (*UbootController) SetMainBoot

func (controller *UbootController) SetMainBoot(index int) (err error)

SetMainBoot sets boot main part index.

Jump to

Keyboard shortcuts

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