Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeLen = 1 LengthLen = 1 S0AddrLen = 2 S1AddrLen = 2 S2AddrLen = 3 S3AddrLen = 4 S5AddrLen = 0 S7AddrLen = 4 S8AddrLen = 3 S9AddrLen = 2 CSumLen = 1 )
constructed values of a field that always has a fixed length in the S record
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
Record is a type of structure that expresses S records per row
func (*Record) CalcChecksum ¶
CalcChecksum calculates the checksum value of the record from the information of the arguments
func (*Record) EndAddress ¶
EndAddress returns endaddress of the record
type Srec ¶
type Srec struct {
Records []*Record
}
Srec is a type of structure with multiple Record structures
func (*Srec) EndAddr ¶
EndAddr returns the record's end address from the records of the Srec object Since the end address of the S record is (address of the last record + data length -1), 1 is subtracted Please be aware that processing costs are high as it traverses the entire object
Click to show internal directories.
Click to hide internal directories.