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: mbed PowerControl
Fork of Projet_S5 by
Diff: analyzer.h
- Revision:
- 5:6313ddd0dfdd
- Parent:
- 3:17a4ceb30535
- Child:
- 6:ef8bfca9e69b
--- a/analyzer.h Sat Mar 29 13:52:23 2014 +0000
+++ b/analyzer.h Thu Apr 03 14:28:33 2014 +0000
@@ -10,23 +10,24 @@
Analyzer();
~Analyzer();
- void setMinMax(unsigned short* values);
+ void setMinMax(char* values);
+ void checkMouvement();
private:
struct Data
{
- unsigned short _min;
- unsigned short _max;
+ char min;
+ char max;
- Data(): _min(USHRT_MAX), _max(0){}
+ Data(): min(CHAR_MAX), max(0){}
- void setMinMax(unsigned short value)
+ void setMinMax(char value)
{
- if (value < _min)
- _min = value;
+ if (value < min)
+ min = value;
- if (value > _max)
- _max = value;
+ if (value > max)
+ max = value;
}
};
@@ -40,7 +41,8 @@
extern void *Analyzer_C_new();
extern void Analyzer_C_delete(void *analyzer);
-extern void Analyzer_C_setMinMax(unsigned short* values, void *analyzer);
+extern void Analyzer_C_setMinMax(char* values, void *analyzer);
+extern void Analyzer_C_checkMouvement(void *analyzer);
#ifdef __cplusplus
}
