Whitworth-EN173-2016 / Mbed 2 deprecated CAN Diagnostics

Dependencies:   UniGraphic mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ODBII.h Source File

ODBII.h

00001 #ifndef ODBII_H
00002 #define ODBII_H
00003 
00004 #include "mbed.h"
00005 //Can Speed
00006 #define CANSPEED_125      125000
00007 #define CANSPEED_250      250000
00008 #define CANSPEED_500      500000
00009 //These are used to define the different PID codes as well as other codes
00010 #define ENGINE_COOLANT_TEMP 0x05
00011 #define ENGINE_RPM          0x0C
00012 #define VEHICLE_SPEED       0x0D
00013 
00014 
00015 #define PID_REQUEST         0x7DF
00016 #define PID_REPLY           0x7E8
00017 //the two functions
00018 float request(char pid);
00019 void set_frequency(int amount);
00020 
00021 #endif