Christian Taedcke / Mbed 2 deprecated ObdDisplay

Dependencies:   Adafruit_GFX MODSERIAL mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PidValue.h Source File

PidValue.h

00001 #ifndef PIDVALUE_H
00002 #define PIDVALUE_H
00003 
00004 #include <stdint.h>
00005 
00006 class PidValue
00007 {
00008 public:
00009     PidValue(const char* name, const char* unit);
00010     virtual bool decode(const uint8_t* data, uint16_t length) = 0;
00011     void print();
00012     const char* getName();
00013     const char* getUnit();
00014     unsigned int getValue();
00015 protected:    
00016     unsigned int m_value;
00017     const char* m_unit;
00018     const char* m_name;
00019 };
00020 
00021 #endif //PIDVALUE_H