Module frame

Module frame 

Source
Expand description

LIN bus frame definitions

Modules§

diagnostic
Implements the LIN diagnostics methods.
transport
Implements the transport layer of LIN. The units that are transported in a transport layer frame are called PDU (Packet Data Unit)

Structs§

Frame
PID
Protected ID which is a 6 bit ID with two parity bits

Functions§

checksum
Calculate the LIN V2.1 “enhanced” checksum. It is defined as “The inverted eight bit sum with carry. Eight bit sum with carry is equivalent to sum all values and subtract 255 every time the sum is greater or equal to 256”
classic_checksum
Calculate the LIN V1.3 “classic” checksum. It is defined as “Checksum calculation over the data bytes only”