Dummy Lora Packet Sending

Fork of Dealer_18feb17 by kumar singh

OBD.h

Committer:
NarendraSingh
Date:
2017-01-27
Revision:
11:77e595130230

File content as of revision 11:77e595130230:

 #include "mbed.h"
 #include "rtos.h"
 #include "Common_Defs.h"
 
  #define RESET_OBD_DEVICE          "ATZ\r"
  #define READ_BATTERY_VOLTAGE      "ATRV\r"
  #define READ_ENGINE_RPM           "010c\r"
  #define READ_VEHICLE_SPEED        "010D\r"
  
 //This is a character buffer that will store the data from the serial port
 extern char OBD_RxData[30];
 extern char OBD_RxIndex;
 //Variables to hold the speed and RPM data.
 extern int vehicleSpeed;
 extern int vehicleRPM;
 extern char Battery_Voltage[6];
 void Initialize_OBD(void);
 void Get_OBD_Response(void);
 uint16 Calculate_Wheels_RPM(uint8* Buffer);
 void flushSerialBuffer(void);
 void Get_Vehicle_RPM(void);
 void Get_Vehicle_Speed(void);
 void Get_Battery_Voltage(void);
 void OBD_Rcvd_Cmd_Processing_thread(void const *args);