E8WATS
Fork of RemoteIR by
Diff: ReceiverIR.cpp
- Revision:
- 1:4adf16017a0f
- Parent:
- 0:ec264f4ce158
- Child:
- 3:dfed23b157e6
diff -r ec264f4ce158 -r 4adf16017a0f ReceiverIR.cpp --- a/ReceiverIR.cpp Tue Aug 17 08:50:54 2010 +0000 +++ b/ReceiverIR.cpp Tue Aug 17 09:14:49 2010 +0000 @@ -13,11 +13,6 @@ #define InRange(x,y) ((((y) * 0.7) < (x)) && ((x) < ((y) * 1.3))) ReceiverIR::ReceiverIR(PinName rxpin) : evt(rxpin) { -} - -ReceiverIR::~ReceiverIR() {} - -void ReceiverIR::init(void) { IRQ_DISABLE(); evt.fall(this, &ReceiverIR::isr_fall); evt.rise(this, &ReceiverIR::isr_rise); @@ -27,6 +22,9 @@ IRQ_ENABLE(); } +ReceiverIR::~ReceiverIR() { +} + ReceiverIR::State ReceiverIR::getState() { IRQ_DISABLE(); State s = data.state;