Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
PollingInterruptThread.h
Go to the documentation of this file.
1 /*
2  * PollingInterruptThread.h
3  *
4  * Created on: Apr 10, 2014
5  * Author: mitycam
6  */
7 
8 #ifndef POLLINGINTERRUPTTHREAD_H_
9 #define POLLINGINTERRUPTTHREAD_H_
10 
11 #include "Thread.h"
12 #include "RAMStreamer.h"
13 #include "Observable.h"
14 
23 {
24 public:
26  virtual ~tcPollingInterruptThread();
27 
28  void setStreamer(tcRAMStreamer *apStreamer);
29 
30  virtual void* run();
31 
32  void setEnable(bool abEnable);
33 
34 private:
35  tcRAMStreamer *mpStreamer;
36 
37  bool mbEnabled;
38 
39  static const int POLL_PERIOD = 10000;
40 };
41 
42 #endif /* POLLINGINTERRUPTTHREAD_H_ */
tcPollingInterruptThread::setStreamer
void setStreamer(tcRAMStreamer *apStreamer)
Definition: PollingInterruptThread.cpp:107
RAMStreamer.h
tcPollingInterruptThread::run
virtual void * run()
Definition: PollingInterruptThread.cpp:39
tcRAMStreamer
Definition: RAMStreamer.h:8
tcObservable
Definition: Observable.h:7
tcThread
Definition: Thread.h:6
tcPollingInterruptThread::setEnable
void setEnable(bool abEnable)
Definition: PollingInterruptThread.cpp:112
Thread.h
Observable.h
tcPollingInterruptThread
Definition: PollingInterruptThread.h:22
tcPollingInterruptThread::tcPollingInterruptThread
tcPollingInterruptThread(tcRAMStreamer *apStreamer)
Definition: PollingInterruptThread.cpp:20
tcPollingInterruptThread::~tcPollingInterruptThread
virtual ~tcPollingInterruptThread()
Definition: PollingInterruptThread.cpp:27