lib para o framework sgam
Dependencies: MPU6050 Grove_temperature
Dependents: example_smart-grid
peripheral/Sensor.h@3:f998244e9f80, 2019-06-02 (annotated)
- Committer:
- AndersonIctus
- Date:
- Sun Jun 02 16:51:13 2019 -0300
- Revision:
- 3:f998244e9f80
- Parent:
- 1:53edfdd6ac03
- Child:
- 4:f21aab30658a
- Inclusao dos Arquivos para o GIROSCOPIO !!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndersonIctus | 1:53edfdd6ac03 | 1 | #ifndef SGAM_SENSOR_H |
AndersonIctus | 1:53edfdd6ac03 | 2 | #define SGAM_SENSOR_H |
AndersonIctus | 1:53edfdd6ac03 | 3 | |
AndersonIctus | 1:53edfdd6ac03 | 4 | #include "mbed.h" |
AndersonIctus | 1:53edfdd6ac03 | 5 | |
AndersonIctus | 3:f998244e9f80 | 6 | template <class T> |
AndersonIctus | 1:53edfdd6ac03 | 7 | class Sensor { |
AndersonIctus | 1:53edfdd6ac03 | 8 | public: |
AndersonIctus | 1:53edfdd6ac03 | 9 | Sensor() { } ; |
AndersonIctus | 3:f998244e9f80 | 10 | ~Sensor(){ }; |
AndersonIctus | 1:53edfdd6ac03 | 11 | |
AndersonIctus | 3:f998244e9f80 | 12 | virtual T* getValue() = 0; |
AndersonIctus | 3:f998244e9f80 | 13 | virtual void readOcurred( void* (*callBack)(T* value), float timeout) = 0; |
AndersonIctus | 1:53edfdd6ac03 | 14 | }; |
AndersonIctus | 1:53edfdd6ac03 | 15 | |
AndersonIctus | 1:53edfdd6ac03 | 16 | #endif // SGAM_SENSOR_H |