TargetManager

Dependents:   TargetManagerManualTest NerfUSTarget

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers NerfusTicker.hpp Source File

NerfusTicker.hpp

00001 #ifndef NERFUS_TICKER_HPP
00002 #define NERFUS_TICKER_HPP
00003 
00004 #include "mbed.h"
00005 #include "NerfusCallbackInterface.hpp"
00006 #include "NerfusTickerInterface.hpp"
00007 
00008 class NerfusTicker : public NerfusTickerInterface
00009 {
00010     public:
00011         virtual void start(int timeout_ms);
00012         virtual void stop();
00013         virtual int get_time_ms();
00014         
00015         void init(NerfusCallbackInterface* nerfus_callback);
00016         void timeout();
00017                 
00018     private:
00019         NerfusCallbackInterface *nerfus_callback;
00020         Ticker ticker;
00021         Timer timer;
00022 };
00023 
00024 #endif