Documentation
¶
Index ¶
- Variables
- func IntToBig(num uint32) []byte
- func MyHexParser(filepath string, blockSize int) (dataLen []byte, startAddr []byte, data [][]byte, err error)
- func MyHexParserFirstSegment(filepath string, blockSize int) (dataLen []byte, startAddr []byte, data [][]byte, err error)
- func MyHexParserWithLengths(filepath string, blockSize int, addrLen int, sizeLen int) (dataLen []byte, startAddr []byte, data [][]byte, err error)
- func SplitBlock(data []byte, bs int) [][]byte
- type HexSegment
- type ReadDataByIdentifier
- func (r *ReadDataByIdentifier) ReadDataByIdentifier(dids ...uint16) (*ReadDataByIdentifierResponse, error)
- func (r *ReadDataByIdentifier) ReadDataByIdentifierWithLengths(lengths map[uint16]int, dids ...uint16) (*ReadDataByIdentifierResponse, error)
- func (r *ReadDataByIdentifier) SetTimeout(timeout time.Duration)
- type ReadDataByIdentifierResponse
- type RequestDownload
- func (r *RequestDownload) RequestDownload(address, size uint64, addrLen, sizeLen int) (*RequestDownloadResponse, error)
- func (r *RequestDownload) RequestDownloadWithFormat(address, size uint64, addrLen, sizeLen int, dataFormat byte) (*RequestDownloadResponse, error)
- func (r *RequestDownload) SetTimeout(timeout time.Duration)
- type RequestDownloadResponse
- type RequestTransferExit
- type RequestTransferExitResponse
- type RoutineControl
- type RoutineControlResponse
- type SecurityAccess
- func (s *SecurityAccess) ComputeKey(_ int, _ []byte) ([]byte, error)
- func (s *SecurityAccess) ComputeKeyWithLength(_ int, _ []byte, _ int) ([]byte, error)
- func (s *SecurityAccess) RequestSeed(_ byte, _ byte, _ []byte) ([]byte, error)
- func (s *SecurityAccess) SecurityAccess(_ byte, _ byte) ([]byte, error)
- func (s *SecurityAccess) SecurityAccessWithLength(_ byte, _ byte, _ int) ([]byte, error)
- func (s *SecurityAccess) SecurityAccessWithSeedData(_ byte, _ byte, _ []byte) ([]byte, error)
- func (s *SecurityAccess) SecurityAccessWithSeedDataAndLength(_ byte, _ byte, _ []byte, _ int) ([]byte, error)
- func (s *SecurityAccess) SendKey(_ byte, _ byte, _ []byte) ([]byte, error)
- func (s *SecurityAccess) SetTimeout(timeout time.Duration)
- type TransferData
- func (t *TransferData) SetTimeout(timeout time.Duration)
- func (t *TransferData) TransferBlocks(blocks [][]byte, startSeq byte) (*TransferDataResponse, byte, error)
- func (t *TransferData) TransferData(sequenceNumber byte, data []byte) (*TransferDataResponse, error)
- func (t *TransferData) TransferHexFile(filepath string, blockSize int, startSeq byte) (*TransferDataResponse, byte, error)
- type TransferDataResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSecKeyUnsupported = errors.New("SecKey.dll is only supported on windows")
Functions ¶
func MyHexParser ¶
func MyHexParserFirstSegment ¶
func MyHexParserWithLengths ¶
func SplitBlock ¶
Types ¶
type HexSegment ¶
func ParseHexSegments ¶
func ParseHexSegments(filepath string, blockSize int) ([]HexSegment, error)
type ReadDataByIdentifier ¶
type ReadDataByIdentifier struct {
// contains filtered or unexported fields
}
func NewReadDataByIdentifier ¶
func NewReadDataByIdentifier(client *uds_client.UDSClient) *ReadDataByIdentifier
func (*ReadDataByIdentifier) ReadDataByIdentifier ¶
func (r *ReadDataByIdentifier) ReadDataByIdentifier(dids ...uint16) (*ReadDataByIdentifierResponse, error)
func (*ReadDataByIdentifier) ReadDataByIdentifierWithLengths ¶
func (r *ReadDataByIdentifier) ReadDataByIdentifierWithLengths(lengths map[uint16]int, dids ...uint16) (*ReadDataByIdentifierResponse, error)
func (*ReadDataByIdentifier) SetTimeout ¶
func (r *ReadDataByIdentifier) SetTimeout(timeout time.Duration)
type RequestDownload ¶
type RequestDownload struct {
// contains filtered or unexported fields
}
func NewRequestDownload ¶
func NewRequestDownload(client *uds_client.UDSClient) *RequestDownload
func (*RequestDownload) RequestDownload ¶
func (r *RequestDownload) RequestDownload(address, size uint64, addrLen, sizeLen int) (*RequestDownloadResponse, error)
func (*RequestDownload) RequestDownloadWithFormat ¶
func (r *RequestDownload) RequestDownloadWithFormat(address, size uint64, addrLen, sizeLen int, dataFormat byte) (*RequestDownloadResponse, error)
func (*RequestDownload) SetTimeout ¶
func (r *RequestDownload) SetTimeout(timeout time.Duration)
type RequestDownloadResponse ¶
type RequestTransferExit ¶
type RequestTransferExit struct {
// contains filtered or unexported fields
}
func NewRequestTransferExit ¶
func NewRequestTransferExit(client *uds_client.UDSClient) *RequestTransferExit
func (*RequestTransferExit) RequestTransferExit ¶
func (r *RequestTransferExit) RequestTransferExit(data []byte) (*RequestTransferExitResponse, error)
func (*RequestTransferExit) SetTimeout ¶
func (r *RequestTransferExit) SetTimeout(timeout time.Duration)
type RoutineControl ¶
type RoutineControl struct {
// contains filtered or unexported fields
}
func NewRoutineControl ¶
func NewRoutineControl(client *uds_client.UDSClient) *RoutineControl
func (*RoutineControl) RoutineControl ¶
func (r *RoutineControl) RoutineControl(controlType byte, routineID uint16, data []byte) (*RoutineControlResponse, error)
func (*RoutineControl) SetTimeout ¶
func (r *RoutineControl) SetTimeout(timeout time.Duration)
type RoutineControlResponse ¶
type SecurityAccess ¶
type SecurityAccess struct {
// contains filtered or unexported fields
}
func NewSecurityAccess ¶
func NewSecurityAccess(client *uds_client.UDSClient) *SecurityAccess
func (*SecurityAccess) ComputeKey ¶
func (s *SecurityAccess) ComputeKey(_ int, _ []byte) ([]byte, error)
func (*SecurityAccess) ComputeKeyWithLength ¶
func (*SecurityAccess) RequestSeed ¶
func (*SecurityAccess) SecurityAccess ¶
func (s *SecurityAccess) SecurityAccess(_ byte, _ byte) ([]byte, error)
func (*SecurityAccess) SecurityAccessWithLength ¶
func (*SecurityAccess) SecurityAccessWithSeedData ¶
func (*SecurityAccess) SecurityAccessWithSeedDataAndLength ¶
func (*SecurityAccess) SetTimeout ¶
func (s *SecurityAccess) SetTimeout(timeout time.Duration)
type TransferData ¶
type TransferData struct {
// contains filtered or unexported fields
}
func NewTransferData ¶
func NewTransferData(client *uds_client.UDSClient) *TransferData
func (*TransferData) SetTimeout ¶
func (t *TransferData) SetTimeout(timeout time.Duration)
func (*TransferData) TransferBlocks ¶
func (t *TransferData) TransferBlocks(blocks [][]byte, startSeq byte) (*TransferDataResponse, byte, error)
func (*TransferData) TransferData ¶
func (t *TransferData) TransferData(sequenceNumber byte, data []byte) (*TransferDataResponse, error)
func (*TransferData) TransferHexFile ¶
func (t *TransferData) TransferHexFile(filepath string, blockSize int, startSeq byte) (*TransferDataResponse, byte, error)
type TransferDataResponse ¶
Click to show internal directories.
Click to hide internal directories.