Documentation ¶
Index ¶
- type UbootController
- func (controller *UbootController) Close()
- func (controller *UbootController) GetCurrentBoot() (index int, err error)
- func (controller *UbootController) GetMainBoot() (index int, err error)
- func (controller *UbootController) SetBootOK() (err error)
- func (controller *UbootController) SetMainBoot(index int) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UbootController ¶
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.
Click to show internal directories.
Click to hide internal directories.