TargetManager

Dependents:   TargetManagerManualTest NerfUSTarget

include/NerfusTicker.hpp

Committer:
GaiSensei
Date:
2017-04-11
Revision:
10:1b5440d9226c
Parent:
7:18129a81e6aa

File content as of revision 10:1b5440d9226c:

#ifndef NERFUS_TICKER_HPP
#define NERFUS_TICKER_HPP

#include "mbed.h"
#include "NerfusCallbackInterface.hpp"
#include "NerfusTickerInterface.hpp"

class NerfusTicker : public NerfusTickerInterface
{
    public:
        virtual void start(int timeout_ms);
        virtual void stop();
        virtual int get_time_ms();
        
        void init(NerfusCallbackInterface* nerfus_callback);
        void timeout();
                
    private:
        NerfusCallbackInterface *nerfus_callback;
        Ticker ticker;
        Timer timer;
};

#endif