lib para o framework sgam
Dependencies: MPU6050 Grove_temperature
Dependents: example_smart-grid
peripheral/impl/Temperature.h@4:f21aab30658a, 2019-06-03 (annotated)
- Committer:
- AndersonIctus
- Date:
- Mon Jun 03 23:33:00 2019 -0300
- Revision:
- 4:f21aab30658a
- Parent:
- 3:f998244e9f80
- Child:
- 5:caecc2426bbb
- inclusao das logicas para observar uma mudan?a de valor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndersonIctus | 1:53edfdd6ac03 | 1 | #ifndef SGAM_TEMPERATURE_H |
AndersonIctus | 1:53edfdd6ac03 | 2 | #define SGAM_TEMPERATURE_H |
AndersonIctus | 1:53edfdd6ac03 | 3 | |
AndersonIctus | 3:f998244e9f80 | 4 | #include "mbed.h" |
AndersonIctus | 1:53edfdd6ac03 | 5 | #include "Sensor.h" |
AndersonIctus | 1:53edfdd6ac03 | 6 | #include "Grove_temperature.h" |
AndersonIctus | 1:53edfdd6ac03 | 7 | |
AndersonIctus | 3:f998244e9f80 | 8 | class Temperature: public Sensor<float> { |
AndersonIctus | 1:53edfdd6ac03 | 9 | public: |
AndersonIctus | 1:53edfdd6ac03 | 10 | Temperature(PinName pin); |
AndersonIctus | 3:f998244e9f80 | 11 | virtual ~Temperature(); |
AndersonIctus | 1:53edfdd6ac03 | 12 | |
AndersonIctus | 4:f21aab30658a | 13 | virtual float getValue(); |
AndersonIctus | 4:f21aab30658a | 14 | virtual void setCallbackReadOcurred( void* (*callback)(float* value), float timeout ); |
AndersonIctus | 4:f21aab30658a | 15 | |
AndersonIctus | 4:f21aab30658a | 16 | protected: |
AndersonIctus | 4:f21aab30658a | 17 | virtual void run(float timeout); |
AndersonIctus | 4:f21aab30658a | 18 | virtual void acceptDataEvent(float* data); |
AndersonIctus | 1:53edfdd6ac03 | 19 | |
AndersonIctus | 1:53edfdd6ac03 | 20 | private: |
AndersonIctus | 1:53edfdd6ac03 | 21 | Grove_temperature temperature; |
AndersonIctus | 3:f998244e9f80 | 22 | }; |
AndersonIctus | 3:f998244e9f80 | 23 | |
AndersonIctus | 1:53edfdd6ac03 | 24 | #endif // SGAM_TEMPERATURE_H |