command

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandObj

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

func AttachSpiFlash

func AttachSpiFlash() *CommandObj

func ChangeBaudRate

func ChangeBaudRate(newBaudrate uint32, oldBaudrate uint32) *CommandObj

func Sync

func Sync() *CommandObj

func (*CommandObj) Bytes

func (c *CommandObj) Bytes() []byte

func (*CommandObj) Checksum

func (c *CommandObj) Checksum(data []byte) *CommandObj

func (*CommandObj) Opcode

func (c *CommandObj) Opcode() string

func (*CommandObj) OpcodeToByte

func (c *CommandObj) OpcodeToByte() byte

type FlashCommandObj

type FlashCommandObj struct{}
var Flash FlashCommandObj

func (FlashCommandObj) Begin

func (FlashCommandObj) Begin(eraseSize uint32, numBlocks uint32, blockSize uint32, offset uint32) *CommandObj

func (FlashCommandObj) BeginDeflate

func (FlashCommandObj) BeginDeflate(eraseSize uint32, numBlocks uint32, blockSize uint32, offset uint32) *CommandObj

func (FlashCommandObj) Data

func (FlashCommandObj) Data(data []byte, sequence uint32) *CommandObj

func (FlashCommandObj) DataDeflate

func (FlashCommandObj) DataDeflate(data []byte, sequence uint32) *CommandObj

func (FlashCommandObj) End

func (FlashCommandObj) End(reboot bool) *CommandObj

type NumberObj

type NumberObj struct{}
var Number NumberObj

func (NumberObj) Uint16

func (NumberObj) Uint16(data uint16) []byte

func (NumberObj) Uint32

func (NumberObj) Uint32(data uint32) []byte

type ReadCommandObj

type ReadCommandObj struct{}
var Read ReadCommandObj

func (ReadCommandObj) Flash

func (ReadCommandObj) Flash(offset uint32, size uint32) *CommandObj

func (ReadCommandObj) Register

func (ReadCommandObj) Register(register uint32) *CommandObj

Jump to

Keyboard shortcuts

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