Struct MessageCounter

Inheritance Relationships

Base Type

Struct Documentation

struct MessageCounter : public off_highway_can::Signal

Message counter CAN signal to allow modular arithmetic with check.

Public Functions

void increase()

Increase message counter with modular arithmetic (wrap-around at signal length)

template<typename FrameData>
bool decode_and_check(const FrameData &frame)

Decode and check with last value before decoding (alters value!)

Parameters:

frame – Frame byte array.

Public Members

bool first = {true}