RemotoIR Libraryに、IRC Helicopter Propo の受信処理と、受信パルス幅測定処理を追加したものです。

Dependents:   SwiftPropoIR_TestProgram irRawDataDisplay spinner2 LPC1114_ir-spinne_main-propo

Fork of RemoteIR by Shinichiro Nakamura

Files at this revision

API Documentation at this revision

Comitter:
shintamainjp
Date:
Tue Aug 17 09:14:49 2010 +0000
Parent:
0:ec264f4ce158
Child:
2:08836610bd4a
Commit message:

Changed in this revision

ReceiverIR.cpp Show annotated file Show diff for this revision Revisions of this file
ReceiverIR.h Show annotated file Show diff for this revision Revisions of this file
--- 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;
--- a/ReceiverIR.h	Tue Aug 17 08:50:54 2010 +0000
+++ b/ReceiverIR.h	Tue Aug 17 09:14:49 2010 +0000
@@ -40,8 +40,6 @@
         Received
     } State;
     
-    void init(void);
-
     /**
      * Get state.
      *