package
0.0.0-20240331223843-b27265be37cc
Repository: https://github.com/gavinwade12/eclogger.git
Documentation: pkg.go.dev
# Functions
AvailableDerivedParameters returns the DerivedParameters that are available based on the provided Parameters.
CalculateChecksum calculates the checksum for a fully-allocated (including the checksum byte itself) packet.
LoggingSession sends a continuous ReadAddressesRequest for the given parameters and then reads the response packets until the context is canceled.
NewConnection returns a new Connection.
NewFakeConnection returns a new Connection that isn't connected to a real device.
ReadSetDTCs uses the provided connection to determine the DTCs that are set in the ECU.
ReadStoredDTCs uses the provided connection to determine the DTCs that are stored in the ECU.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConnectionBaudRate is the baud rate (bits/s) used for the serial connection.
ConnectionDataBits is the data bit setting (bits/word) used for the serial connection.
ConnectionReadTimeout is the amount of time per read spent before a timeout occurs.
ConnectionTotalReadTimeout is the amount of time spent to read an entire buffer before a timeout occurs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constant values used to describe pieces of a packet.
Constant values used to describe pieces of a packet.
Constant values used to describe pieces of a packet.
Constant values used to describe pieces of a packet.
Constant values used to describe pieces of a packet.
Constant values used to describe pieces of a packet.
Constant values used to describe pieces of a packet.
Constant values used to describe pieces of a packet.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidChecksumByte is returned when a packet is received from the ECU and the checksum byte doesn't match the calculated checksum byte.
ErrInvalidResponseCommand is returned when a packet is sent and the ECU doesn't respond with the proper command corresponding to the sent command.
ErrReadTimeout is returned when reading a packet times out.
No description provided by the author
Parameters defines all the parameters supported by the SSM2 protocol.
# Structs
Address describes the address(es) containing the value for the parameter with an optional bit for switch parameters.
DerivedParameter is a parameter derived from other calculated parameters instead of from ECU values.
No description provided by the author
ECU describes an ECU and the different parameters it supports.
Parameter represents a parameter that can be read from the ECU.
Parameter value stores a parameter's value with its current unit.
# Interfaces
Connection provides high-level methods for communicating with an ECU via the SSM2 protocol.
No description provided by the author
# Type aliases
Packet defines the common packet structure used in requests and respones.