diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-02 17:15:24 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-02 17:15:24 -0500 |
commit | 8e574cb4798a928ac50ffe6cb4fa5e3d22b8003a (patch) | |
tree | 56f8ab5c1eecc9163be48f7668e10460c63b4d83 /src/obd2/obd2.h | |
parent | 54713fc5deab5de318d79035a0927d828ae239f5 (diff) |
Test basic diag request and response!
Diffstat (limited to 'src/obd2/obd2.h')
-rw-r--r-- | src/obd2/obd2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/obd2/obd2.h b/src/obd2/obd2.h index 75894835..2bb6c77f 100644 --- a/src/obd2/obd2.h +++ b/src/obd2/obd2.h @@ -133,9 +133,9 @@ typedef enum { } DiagnosticPidRequestType; typedef struct { - SetTimerShim set_timer; - SendCanMessageShim send_can_message; LogShim log; + SendCanMessageShim send_can_message; + SetTimerShim set_timer; } DiagnosticShims; DiagnosticShims diagnostic_init_shims(LogShim log, @@ -147,8 +147,8 @@ DiagnosticRequestHandle diagnostic_request(DiagnosticShims* shims, // decide mode 0x1 / 0x22 based on pid type DiagnosticRequestHandle diagnostic_request_pid(DiagnosticShims* shims, - DiagnosticPidRequestType pid_request_type, uint16_t pid, - DiagnosticResponseReceived callback); + DiagnosticPidRequestType pid_request_type, uint16_t arbitration_id, + uint16_t pid, DiagnosticResponseReceived callback); DiagnosticRequestHandle diagnostic_request_malfunction_indicator_status( DiagnosticShims* shims, |