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.
menbedMenuParam.cpp
00001 #include "mbed.h" 00002 #include "include/menbedMenuParam.h" 00003 #include <string> 00004 00005 MenbedMenuParam::MenbedMenuParam ( 00006 float (*initValFcn)(void), void (*finalValFcn)(float), 00007 bool liveUpdate, float min, float max, 00008 float inc) : 00009 initValFcn(initValFcn), finalValFcn(finalValFcn), _liveUpdate(liveUpdate), 00010 _min(min), _max(max), _inc(inc) 00011 { 00012 } 00013 00014 00015 float MenbedMenuParam::getVal (void) 00016 { 00017 if (initValFcn == NULL) 00018 return 0.0; 00019 00020 return initValFcn(); 00021 } 00022 00023 void MenbedMenuParam::setVal (float v) 00024 { 00025 if (finalValFcn == NULL) 00026 return; 00027 00028 finalValFcn(v); 00029 }
Generated on Thu Jul 14 2022 12:14:44 by
