Documentation
¶
Index ¶
- type CommandObj
- type FlashCommandObj
- func (FlashCommandObj) Begin(eraseSize uint32, numBlocks uint32, blockSize uint32, offset uint32) *CommandObj
- func (FlashCommandObj) BeginDeflate(eraseSize uint32, numBlocks uint32, blockSize uint32, offset uint32) *CommandObj
- func (FlashCommandObj) Data(data []byte, sequence uint32) *CommandObj
- func (FlashCommandObj) DataDeflate(data []byte, sequence uint32) *CommandObj
- func (FlashCommandObj) End(reboot bool) *CommandObj
- type NumberObj
- type ReadCommandObj
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 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
Click to show internal directories.
Click to hide internal directories.