Dependencies:   mbed

Committer:
joe
Date:
Fri Aug 20 15:38:52 2010 +0000
Revision:
2:a079de4fd5b9
Parent:
0:960b355eaa84

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joe 0:960b355eaa84 1 #ifndef _COUNTER__H_
joe 0:960b355eaa84 2 #define _COUNTER__H_
joe 0:960b355eaa84 3
joe 0:960b355eaa84 4 #include "mbed.h"
joe 0:960b355eaa84 5
joe 0:960b355eaa84 6 class Counter {
joe 0:960b355eaa84 7
joe 0:960b355eaa84 8 public:
joe 0:960b355eaa84 9 Counter(PinName pin);
joe 0:960b355eaa84 10 void rising(void);
joe 0:960b355eaa84 11 int read(void);
joe 0:960b355eaa84 12 void reset(void);
joe 0:960b355eaa84 13
joe 0:960b355eaa84 14 private:
joe 0:960b355eaa84 15 InterruptIn _interrupt;
joe 0:960b355eaa84 16 volatile int _count;
joe 0:960b355eaa84 17
joe 0:960b355eaa84 18 };
joe 0:960b355eaa84 19
joe 0:960b355eaa84 20 #endif