diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-06 00:23:55 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-06 00:23:55 -0500 |
commit | cf4d4348421c7a2e8887fae39c7e9ab21a70666c (patch) | |
tree | b15ad6d9216f765db531ff398a3deb55fec38ff9 /src/uds/uds.h | |
parent | 2625fea56a1e220694ad6805bc9047f10f7c8c47 (diff) |
Add a function to check if a request is completely sent.
Diffstat (limited to 'src/uds/uds.h')
-rw-r--r-- | src/uds/uds.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uds/uds.h b/src/uds/uds.h index 1546320e..43058342 100644 --- a/src/uds/uds.h +++ b/src/uds/uds.h @@ -151,6 +151,13 @@ float diagnostic_decode_obd2_pid(const DiagnosticResponse* response); bool diagnostic_request_equals(const DiagnosticRequest* ours, const DiagnosticRequest* theirs); +/* Public: Returns true if the request has been completely sent - if false, make + * sure you called start_diagnostic_request once to start it, and then pass + * incoming CAN messages to it with diagnostic_receive_can_frame(...) so it can + * continue the ISO-TP transfer. + */ +bool diagnostic_request_sent(DiagnosticRequestHandle* handle); + #ifdef __cplusplus } #endif |