Documentation
¶
Index ¶
- type DataSegment
- type Memory
- func (m *Memory) AddBinary(adr uint32, bytes []byte) error
- func (m *Memory) Clear()
- func (m *Memory) DumpIntelHex(writer io.Writer, lineLength byte) error
- func (m *Memory) GetDataSegments() []DataSegment
- func (m *Memory) GetStartAddress() (adr uint32, ok bool)
- func (m *Memory) ParseIntelHex(reader io.Reader) error
- func (m *Memory) RemoveBinary(adr uint32, size uint32)
- func (m *Memory) SetBinary(adr uint32, bytes []byte)
- func (m *Memory) SetStartAddress(adr uint32)
- func (m *Memory) ToBinary(address uint32, size uint32, padding byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSegment ¶
type DataSegment struct { Address uint32 // Starting address of data segment Data []byte // Data segment bytes }
Structure with binary data segment fields
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Main structure with private fields of IntelHex parser
func (*Memory) DumpIntelHex ¶
Method to dumping IntelHex data previously loaded into memory
func (*Memory) GetDataSegments ¶
func (m *Memory) GetDataSegments() []DataSegment
Method to getting data segments address from IntelHex data
func (*Memory) GetStartAddress ¶
Method to getting start address from IntelHex data
func (*Memory) ParseIntelHex ¶
Method to parsing IntelHex data and add into memory
func (*Memory) RemoveBinary ¶
Method to remove binary data from memory (auto segmented and sorted)
func (*Memory) SetBinary ¶
Method to set binary data to memory (data overlapped will change, auto segmented and sorted)
func (*Memory) SetStartAddress ¶
Method to setting start address to IntelHex data
Click to show internal directories.
Click to hide internal directories.