diff options
Diffstat (limited to 'src/obd2/extras.c')
-rw-r--r-- | src/obd2/extras.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/obd2/extras.c b/src/obd2/extras.c index 905ef89d..37a55fe2 100644 --- a/src/obd2/extras.c +++ b/src/obd2/extras.c @@ -1,4 +1,5 @@ #include <obd2/extras.h> +#include <obd2/obd2.h> // TODO everything below here is for future work...not critical for now. @@ -7,18 +8,25 @@ DiagnosticRequestHandle diagnostic_request_malfunction_indicator_status( DiagnosticMilStatusReceived callback) { // TODO request malfunction indicator light (MIL) status - request mode 1 // pid 1, parse first bit + DiagnosticRequestHandle handle; + return handle; } DiagnosticRequestHandle diagnostic_request_vin(DiagnosticShims* shims, DiagnosticVinReceived callback) { + DiagnosticRequestHandle handle; + return handle; } DiagnosticRequestHandle diagnostic_request_dtc(DiagnosticShims* shims, DiagnosticTroubleCodeType dtc_type, DiagnosticTroubleCodesReceived callback) { + DiagnosticRequestHandle handle; + return handle; } bool diagnostic_clear_dtc(DiagnosticShims* shims) { + return false; } DiagnosticRequestHandle diagnostic_enumerate_pids(DiagnosticShims* shims, @@ -26,4 +34,6 @@ DiagnosticRequestHandle diagnostic_enumerate_pids(DiagnosticShims* shims, // before calling the callback, split up the received bytes into 1 or 2 byte // chunks depending on the mode so the final pid list is actual 1 or 2 byte PIDs // TODO request supported PIDs - request PID 0 and parse 4 bytes in response + DiagnosticRequestHandle handle; + return handle; } |