diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-31 16:29:07 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-31 16:29:07 -0500 |
commit | 03c3696d34a064e40c98bb5d53c9b68967353cea (patch) | |
tree | f546d19b16f0594d48a9a3c534794dc1d409a7e2 /src/isotp/isotp.h | |
parent | 6bbc83bd1daac73f9e0dcccb848154a3c3b972fa (diff) |
Return completion status when receiving CAN frames.
Diffstat (limited to 'src/isotp/isotp.h')
-rw-r--r-- | src/isotp/isotp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/isotp/isotp.h b/src/isotp/isotp.h index e3ec588a..4f58dac4 100644 --- a/src/isotp/isotp.h +++ b/src/isotp/isotp.h @@ -93,7 +93,13 @@ IsoTpShims isotp_init_shims(LogShim log, SendCanMessageShim send_can_message, SetTimerShim set_timer); -void isotp_receive_can_frame(IsoTpShims* shims, IsoTpHandle* handle, +/* Public: + * + * Returns true if a complete ISO-TP message was sent or received as of + * processing this CAN frame. Check the 'success' and 'completed' flag on the + * handle to make sure. + */ +bool isotp_receive_can_frame(IsoTpShims* shims, IsoTpHandle* handle, const uint16_t arbitration_id, const uint8_t data[], const uint8_t size); |