Open
Description
Its docs say "An ACK error shall be detected by a transmitter whenever it does not monitor a dominant bit during the ACK slot.", but Can::transmit
only enqueues a frame for transmission, so it's impossible to detect this condition for the frame passed there. Can::transmit
could check if any previous frame caused an ACK error and return an error, but then its return value indicates whether a different frame was transmitted successfully.
Activity
eldruin commentedon Jun 6, 2022
cc: @timokroeger
timokroeger commentedon Jun 6, 2022
I fully agree with jonas here.
The error kinds were chosen to map to the error conditions defined by the CAN spec (same wording in the doc strings as the description in the spec).
For our
transmit()
interface returning an ACK error does not make sense as those should be handled internally by the controller.eldruin commentedon Jul 5, 2022
We discussed in the WG meeting that we could keep the variant but improve its documentation.
Any change suggestions?
Merge #394
Merge #394