Documentation ¶
Index ¶
Constants ¶
View Source
const ( RecTypeData = 0x00 RecTypeEOF = 0x01 RecTypeExtSegAddr = 0x02 RecTypeStartSegAddr = 0x03 RecTypeExtLinAddr = 0x04 RecTypeStartLinAddr = 0x05 LastValidRecType = RecTypeStartLinAddr )
View Source
const ( RecMinLen = 11 ExtLinAddrLen = 2 )
View Source
const ( ErrInvalidRecLen = Err("Invalid record length!") ErrInvalidRecStartCode = Err("Invalid record start code!") ErrNonHexContent = Err("Encountered non hex content!") ErrInvalidRecType = Err("Invalid record type!") ErrInvalidChksum = Err("Invalid checksum!") ErrSegAddressingNotSupported = Err("Segment addressing not supported!") )
Variables ¶
This section is empty.
Functions ¶
func CalcChksum ¶
CalcChksum calculates checksum for the given byte array
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder() *Decoder
Click to show internal directories.
Click to hide internal directories.