POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel

Dependencies:   mbed vt100

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers edge_temp.h Source File

edge_temp.h

00001 #ifndef _EDGE_TEMP_H_
00002 #define _EDGE_TEMP_H_
00003 #include "mbed.h"
00004 #include "edge_sensor.h"
00005 #include "LM75B.h"
00006 #include "SMTC502AT.h"
00007 
00008 class edge_temp : public edge_sensor {
00009 public:
00010     edge_temp(LM75B *temp1, SMTC502AT *temp2, SMTC502AT *temp3, LM75B *temp4) ;
00011     ~edge_temp(void) ;
00012     virtual void    reset(void) ;
00013     virtual void    prepare(void) ;
00014     virtual void    sample(void) ;
00015     virtual int     deliver(void) ;
00016     virtual void    send_config(void) ; /* send config data to cloud */
00017     virtual void    recv_config(void) ; /* receive config data from cloud */
00018     
00019     int accum(void) ;
00020     void clear_value(void) ;
00021     float get_value(void) ;
00022 
00023 private:
00024     LM75B       *_temp1 ;
00025     SMTC502AT   *_temp2 ;
00026     SMTC502AT   *_temp3 ;
00027     LM75B       *_temp4 ;
00028     float       _ftemp[4] ;
00029 } ;
00030 
00031 extern float *current_temp ;
00032 #endif /* _EDGE_TEMP_H_ */