Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
sensor.h@8:e8d86c66283c, 2015-07-02 (annotated)
- Committer:
- tpadovani
- Date:
- Thu Jul 02 22:57:47 2015 +0000
- Revision:
- 8:e8d86c66283c
- Parent:
- 5:1bc98277c257
- Child:
- 22:b66e36356dd4
Implementa??o inicial de c?lculo de tens?o RMS da carga e linha. Novo comando para obter as tens?es de carga e linha.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tpadovani | 5:1bc98277c257 | 1 | #ifndef SENSOR_H |
| tpadovani | 5:1bc98277c257 | 2 | #define SENSOR_H |
| tpadovani | 5:1bc98277c257 | 3 | |
| tpadovani | 5:1bc98277c257 | 4 | #include "mbed.h" |
| tpadovani | 5:1bc98277c257 | 5 | #include "settings.h" |
| tpadovani | 5:1bc98277c257 | 6 | #include "parameters.h" |
| tpadovani | 5:1bc98277c257 | 7 | #include "appParameters.h" |
| tpadovani | 5:1bc98277c257 | 8 | |
| tpadovani | 8:e8d86c66283c | 9 | float getTensaoInstantanea(unsigned char channel); |
| tpadovani | 8:e8d86c66283c | 10 | bool getEstadoSensor(unsigned char channel); |
| tpadovani | 8:e8d86c66283c | 11 | void readSample(); |
| tpadovani | 8:e8d86c66283c | 12 | void timeoutReadingSamples(); |
| tpadovani | 8:e8d86c66283c | 13 | float calculateRMS(); |
| tpadovani | 5:1bc98277c257 | 14 | |
| tpadovani | 5:1bc98277c257 | 15 | #endif |
