Small project to display some OBD values from the Toyota GT86/ Subaru BRZ/ Scion FRS on an OLED display.
Dependencies: Adafruit_GFX MODSERIAL mbed-rtos mbed
PidValue.h
- Committer:
- chrta
- Date:
- 2014-05-11
- Revision:
- 7:a19b63c0a0fa
- Parent:
- 6:506b703a8acf
File content as of revision 7:a19b63c0a0fa:
#ifndef PIDVALUE_H
#define PIDVALUE_H
#include <stdint.h>
class PidValue
{
public:
PidValue(const char* name, const char* unit);
virtual bool decode(const uint8_t* data, uint16_t length) = 0;
void print();
const char* getName();
const char* getUnit();
unsigned int getValue();
protected:
unsigned int m_value;
const char* m_unit;
const char* m_name;
};
#endif //PIDVALUE_H