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: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Signal.h
00001 #ifndef SIGNAL_H 00002 #define SIGNAL_H 00003 #include "mbed.h" 00004 #include "DeviceInfo.h" 00005 #include "AbstractReporter.h" 00006 00007 00008 class Signal: public AbstractReporter 00009 { 00010 public: 00011 Signal(DeviceInfo& d): deviceInfo(d), timer() { 00012 oldValues[0] = 0; 00013 oldValues[1] = 0; 00014 timer.start(); 00015 } 00016 virtual ~Signal() {} 00017 virtual bool init() { return true; } 00018 virtual const char* name() const { return "dBm"; } 00019 virtual int read(char*, size_t, char*, size_t); 00020 private: 00021 int oldValues[2]; 00022 DeviceInfo& deviceInfo; 00023 Timer timer; 00024 }; 00025 00026 #endif /* SIGNAL_H */
Generated on Sat Jul 16 2022 07:10:59 by
1.7.2
