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.cpp
- Revision:
- 5:6313ddd0dfdd
- Parent:
- 3:17a4ceb30535
- Child:
- 6:ef8bfca9e69b
--- a/analyzer.cpp Sat Mar 29 13:52:23 2014 +0000 +++ b/analyzer.cpp Thu Apr 03 14:28:33 2014 +0000 @@ -6,13 +6,18 @@ Analyzer::~Analyzer() {} -void Analyzer::setMinMax(unsigned short* values) +void Analyzer::setMinMax(char* values) { x.setMinMax(values[0]); y.setMinMax(values[1]); z.setMinMax(values[2]); } +void Analyzer::checkMouvement() +{ + +} + extern "C" void *Analyzer_C_new() { return new Analyzer(); @@ -24,8 +29,14 @@ delete an; } -extern "C" void Analyzer_C_setMinMax(unsigned short* values, void *analyzer) +extern "C" void Analyzer_C_setMinMax(char* values, void *analyzer) { Analyzer *an = (Analyzer*)analyzer; an->setMinMax(values); +} + +extern "C" void Analyzer_C_checkMouvement(void *analyzer) +{ + Analyzer *an = (Analyzer*)analyzer; + an->checkMouvement(); } \ No newline at end of file